/* =============================================
   ФОТОШОП МАСТЕР — Agency CSS
   Color palette: Deep Navy + Sky Blue + White
   Font: Roboto family
============================================= */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Roboto+Condensed:wght@700&display=swap');

/* ── CSS Variables ── */
:root {
  --navy:        #0a1628;
  --navy-mid:    #112240;
  --navy-light:  #1a3560;
  --blue:        #1e6dff;
  --blue-light:  #4d94ff;
  --blue-glow:   #1e6dff33;
  --sky:         #e8f2ff;
  --white:       #ffffff;
  --text-muted:  #8ba4c8;
  --border:      #1e3a6e;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 8px 32px rgba(30,109,255,.18);
  --shadow-lg:   0 20px 60px rgba(10,22,40,.5);
  --transition:  .3s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Roboto', sans-serif;
  background: var(--navy);
  color: 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; }

/* ── Typography ── */
h1,h2,h3,h4 { font-family: 'Roboto Condensed', sans-serif; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}
.section-title span { color: var(--blue-light); }
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 3.5rem;
  font-size: 1.05rem;
}

/* ── Utility ── */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(30,109,255,.4);
}
.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(30,109,255,.55);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  transform: translateY(-2px);
}
.btn-telegram {
  background: linear-gradient(135deg, #1d8fbf, #29b5e8);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(41,181,232,.35);
  gap: 8px;
}
.btn-telegram:hover {
  background: linear-gradient(135deg, #29b5e8, #4fc8f0);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(41,181,232,.55);
}
section { padding: 6rem 0; }

/* ── HEADER / NAV ── */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,22,40,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--blue);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: .95rem;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: 1rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5rem 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 50%, #1e6dff22 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, #1e6dff11 0%, transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30,109,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,109,255,.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 70% 50%, black 30%, transparent 70%);
}
.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--blue-glow);
  border: 1px solid var(--blue);
  border-radius: 50px;
  padding: .4rem 1rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--blue-light);
  margin-bottom: 1.2rem;
}
.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-light);
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero-title em {
  font-style: normal;
  color: var(--blue-light);
  position: relative;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 1.2rem 0 2rem;
  max-width: 440px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.8rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  font-family: 'Roboto Condensed', sans-serif;
}
.stat-num span { color: var(--blue-light); }
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: .1rem; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border);
  aspect-ratio: 4/3;
  width: 100%;
  max-width: 560px;
}
.hero-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(30,109,255,.25));
}
.hero-float-card {
  position: absolute;
  background: rgba(17,34,64,.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .8rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .85rem;
  font-weight: 500;
  box-shadow: var(--shadow);
}
.hero-float-card .fc-icon {
  width: 36px; height: 36px;
  background: var(--blue-glow);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.fc-top { top: -18px; left: -20px; }
.fc-bottom { bottom: -18px; right: -20px; }
.fc-small { font-size: .75rem; color: var(--text-muted); }

/* ── FEATURES ── */
.features { background: var(--navy-mid); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.feature-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  opacity: 0;
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--blue); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}
.feature-card h3 { margin-bottom: .6rem; }
.feature-card p { color: var(--text-muted); font-size: .95rem; }

/* ── SERVICES ── */
.services { background: var(--navy); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--blue); box-shadow: var(--shadow); }
.service-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.service-body { padding: 1.4rem; }
.service-tag {
  display: inline-block;
  background: var(--blue-glow);
  color: var(--blue-light);
  font-size: .75rem;
  font-weight: 700;
  border-radius: 4px;
  padding: .2rem .6rem;
  margin-bottom: .7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.service-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.service-card p { color: var(--text-muted); font-size: .88rem; }
.service-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.price-from { font-size: .78rem; color: var(--text-muted); }
.price-val { font-size: 1.3rem; font-weight: 900; color: var(--blue-light); font-family: 'Roboto Condensed', sans-serif; }
.service-link {
  color: var(--blue-light);
  font-size: .85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .3rem;
  transition: gap var(--transition);
}
.service-card:hover .service-link { gap: .6rem; }

/* ── REVIEWS ── */
.reviews { background: var(--navy-mid); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.review-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: var(--transition);
}
.review-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.review-quote {
  font-size: 3rem;
  color: var(--blue);
  line-height: 1;
  margin-bottom: .5rem;
  font-family: Georgia, serif;
}
.review-text { color: var(--text-muted); font-size: .95rem; margin-bottom: 1.5rem; }
.review-author { display: flex; align-items: center; gap: .8rem; }
.author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: .95rem; }
.author-role { font-size: .8rem; color: var(--text-muted); }
.stars { color: #ffc107; font-size: .85rem; margin-bottom: .3rem; }

/* ── FAQ ── */
.faq { background: var(--navy); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  padding: 1.3rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--blue-light); }
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  transition: var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); border-color: var(--blue); color: var(--blue-light); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
  color: var(--text-muted);
  font-size: .95rem;
  padding: 0 1.5rem;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 1.5rem 1.5rem; }

/* ── CONTACT FORM ── */
.contact { background: var(--navy-mid); }
.contact-inner {
  max-width: 580px;
  margin: 0 auto;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
}
.contact-inner h2 { margin-bottom: .5rem; }
.contact-inner p { color: var(--text-muted); margin-bottom: 2rem; }
.form-group { position: relative; margin-bottom: 1rem; }
.form-group input {
  width: 100%;
  background: var(--navy-mid);
  border: 2px solid var(--border);
  border-radius: 50px;
  padding: 1rem 1.5rem;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  color: var(--white);
  outline: none;
  transition: border-color var(--transition);
}
.form-group input::placeholder { color: var(--text-muted); }
.form-group input:focus { border-color: var(--blue); }
.form-success {
  display: none;
  color: #4ade80;
  font-weight: 700;
  margin-top: .8rem;
  font-size: .95rem;
}
.form-success.show { display: block; }

/* ── GALLERY CAROUSEL ── */
.gallery { background: var(--navy); overflow: hidden; }
.carousel-wrapper { position: relative; }
.carousel-track-container { overflow: hidden; border-radius: var(--radius-lg); }
.carousel-track {
  display: flex;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.carousel-slide {
  min-width: 33.333%;
  padding: 0 .5rem;
}
.carousel-slide img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-mid);
  border: 2px solid var(--border);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transition);
}
.carousel-btn:hover { border-color: var(--blue); background: var(--blue); }
.carousel-dots { display: flex; gap: .5rem; }
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.carousel-dot.active { background: var(--blue); width: 24px; border-radius: 4px; }

/* ── SOCIAL ── */
.social-section { background: var(--navy-mid); padding: 4rem 0; }
.social-inner { text-align: center; }
.social-inner h2 { margin-bottom: .5rem; }
.social-inner p { color: var(--text-muted); margin-bottom: 2rem; }
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.social-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1.6rem;
  border-radius: 50px;
  border: 2px solid var(--border);
  font-weight: 700;
  font-size: .95rem;
  transition: var(--transition);
}
.social-link:hover { border-color: var(--blue); background: var(--blue-glow); transform: translateY(-2px); }
.social-link .s-icon { font-size: 1.2rem; }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand p { color: var(--text-muted); font-size: .9rem; margin-top: .8rem; max-width: 280px; }
.footer-col h4 { font-size: 1rem; margin-bottom: 1rem; color: var(--white); }
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul li a { color: var(--text-muted); font-size: .9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: .85rem;
  color: var(--text-muted);
}

/* ══════════════════════════════
   PAGE: ОБРАБОТКА ФОТО
══════════════════════════════ */

/* Service Hero */
.service-hero {
  position: relative;
  padding: 7rem 0 5rem;
  overflow: hidden;
}
.service-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, #1e6dff1a 0%, transparent 70%),
    var(--navy);
}
.service-hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.service-hero-text .breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-muted);
  font-size: .85rem;
  margin-bottom: 1.2rem;
}
.service-hero-text .breadcrumb a { color: var(--blue-light); }
.service-hero-text .breadcrumb span { color: var(--border); }
.service-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.service-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* Service Gallery */
.service-gallery { background: var(--navy-mid); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  group: true;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-label { font-size: .85rem; font-weight: 700; color: var(--white); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,.96);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .features-grid,
  .services-grid,
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--navy-mid);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero-content,
  .service-hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }

  .features-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }

  .carousel-slide { min-width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .contact-inner { padding: 2rem 1.5rem; }
  .hero-stats { gap: 1.5rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ── Scroll Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════
   MESSENGER WIDGET — always open, right side
   Desktop: full pills with text
   Tablet:  compact pills, smaller text
   Mobile:  icon-only circles stacked
══════════════════════════════════════ */

/* Wrapper — fixed to right edge, vertically centred */
.messenger-widget {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  /* leave a small gap so the last button doesn't touch screen edge */
  padding: 8px 0;
}

/* Each messenger link — pill shape */
.msg-btn {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 12px 0 0 12px;   /* rounded on left, flush on right */
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--border);
  border-right: none;
  color: var(--white);
  text-decoration: none;
  box-shadow: -4px 4px 20px rgba(0,0,0,.35);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
  overflow: hidden;
  white-space: nowrap;
  /* slide-in from right on page load */
  animation: widgetSlideIn .5s ease both;
}
.msg-btn:nth-child(1) { animation-delay: .05s; }
.msg-btn:nth-child(2) { animation-delay: .12s; }
.msg-btn:nth-child(3) { animation-delay: .19s; }
.msg-btn:nth-child(4) { animation-delay: .26s; }

@keyframes widgetSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.msg-btn:hover {
  transform: translateX(-5px);
  border-color: currentColor;
  background: rgba(17, 34, 64, 0.98);
}

/* Icon circle */
.msg-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 10px 0 0 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: box-shadow .25s ease, transform .25s ease;
}
.msg-btn:hover .msg-icon { transform: scale(1.08); }
.msg-icon svg { width: 24px; height: 24px; }

/* Text label */
.msg-label {
  padding: 0 14px 0 10px;
  font-size: .82rem;
  font-family: 'Roboto', sans-serif;
  line-height: 1.3;
  color: #c8d8f0;
}
.msg-label strong {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--white);
}

/* ── Per-messenger colors ── */
.msg-telegram { color: #29b5e8; }
.msg-telegram .msg-icon { background: linear-gradient(160deg, #1d8fbf 0%, #29b5e8 100%); }
.msg-telegram:hover { box-shadow: -6px 4px 28px rgba(41,181,232,.4); }
.msg-telegram:hover .msg-icon { box-shadow: 0 0 16px rgba(41,181,232,.65); }

.msg-whatsapp { color: #25d366; }
.msg-whatsapp .msg-icon { background: linear-gradient(160deg, #128c7e 0%, #25d366 100%); }
.msg-whatsapp:hover { box-shadow: -6px 4px 28px rgba(37,211,102,.4); }
.msg-whatsapp:hover .msg-icon { box-shadow: 0 0 16px rgba(37,211,102,.65); }

.msg-vk { color: #5181b8; }
.msg-vk .msg-icon { background: linear-gradient(160deg, #2a5db0 0%, #5181b8 100%); }
.msg-vk:hover { box-shadow: -6px 4px 28px rgba(81,129,184,.4); }
.msg-vk:hover .msg-icon { box-shadow: 0 0 16px rgba(81,129,184,.65); }

.msg-max { color: #b57bee; }
.msg-max .msg-icon { background: linear-gradient(160deg, #7b2fbe 0%, #b57bee 100%); }
.msg-max:hover { box-shadow: -6px 4px 28px rgba(181,123,238,.4); }
.msg-max:hover .msg-icon { box-shadow: 0 0 16px rgba(181,123,238,.65); }

/* ── TABLET (768–1024px): slightly narrower labels ── */
@media (max-width: 1024px) and (min-width: 601px) {
  .msg-icon { width: 42px; height: 42px; min-width: 42px; }
  .msg-icon svg { width: 20px; height: 20px; }
  .msg-label { padding: 0 10px 0 8px; font-size: .78rem; }
  .msg-label strong { font-size: .84rem; }
  .messenger-widget { gap: 6px; }
}

/* ── MOBILE (≤600px): icons only, no text, smaller ── */
@media (max-width: 600px) {
  .messenger-widget {
    top: auto;
    bottom: 16px;
    transform: none;
    flex-direction: row;          /* row on mobile — sits along bottom */
    right: 50%;
    transform: translateX(50%);  /* centre horizontally */
    gap: 10px;
    padding: 0;
  }
  .msg-btn {
    border-radius: 50%;           /* full circles */
    border: 1.5px solid var(--border);
    border-right: 1.5px solid var(--border);
    width: 52px; height: 52px;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.45);
    animation: widgetFadeUp .4s ease both;
  }
  .msg-btn:hover { transform: translateY(-4px) scale(1.08); }
  .msg-label { display: none; }
  .msg-icon {
    width: 100%; height: 100%;
    min-width: unset;
    border-radius: 50%;
  }
  .msg-icon svg { width: 22px; height: 22px; }
  @keyframes widgetFadeUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }
}

/* ══════════════════════════════════════
   LIGHTBOX (с навигацией)
══════════════════════════════════════ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,12,28,.96);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 88vw;
  max-height: 88vh;
}
.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  box-shadow: 0 30px 80px rgba(0,0,0,.7);
  object-fit: contain;
  display: block;
  user-select: none;
}
.lightbox-counter {
  margin-top: 12px;
  font-size: .85rem;
  color: var(--text-muted);
  font-family: 'Roboto', sans-serif;
}
.lightbox-close {
  position: fixed;
  top: 20px; right: 24px;
  background: rgba(17,34,64,.8);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.6rem;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition);
  line-height: 1;
}
.lightbox-close:hover { background: var(--blue); border-color: var(--blue); }

.lightbox-nav {
  position: relative;
  z-index: 2;
  background: rgba(17,34,64,.8);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.8rem;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  margin: 0 12px;
  line-height: 1;
}
.lightbox-nav:hover { background: var(--blue); border-color: var(--blue); transform: scale(1.1); }

@media (max-width: 600px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.4rem; margin: 0 4px; }
  .lightbox-content { max-width: 96vw; }
}

/* ══════════════════════════════════════
   CONSENT CHECKBOX
══════════════════════════════════════ */
.form-consent {
  margin: .8rem 0 0;
  text-align: left;
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.consent-label input[type="checkbox"] {
  display: none;
}
.consent-box {
  width: 20px; height: 20px;
  min-width: 20px;
  border: 2px solid var(--border);
  border-radius: 5px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  transition: var(--transition);
  background: var(--navy-mid);
  flex-shrink: 0;
}
.consent-box::after {
  content: '';
  width: 10px; height: 6px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg) scale(0);
  transition: transform .2s ease;
  margin-top: -2px;
}
.consent-label input:checked ~ .consent-box {
  background: var(--blue);
  border-color: var(--blue);
}
.consent-label input:checked ~ .consent-box::after {
  transform: rotate(-45deg) scale(1);
}
.consent-text {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.consent-text a {
  color: var(--blue-light);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--transition);
}
.consent-text a:hover { text-decoration-color: var(--blue-light); }

.consent-error {
  display: none;
  color: #ff6b6b;
  font-size: .8rem;
  margin-top: 6px;
  padding-left: 30px;
}
