/* ============================================================
   Sky-Web — Main Stylesheet
   ============================================================ */

/* 1. CSS Custom Properties
   ---------------------------------------------------------- */
:root {
  --cyan-400:  #22d3ee;
  --cyan-500:  #06b6d4;
  --cyan-600:  #0891b2;
  --cyan-700:  #0e7490;
  --cyan-100:  #cffafe;
  --cyan-50:   #ecfeff;

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;

  --green-500: #22c55e;
  --red-500:   #ef4444;
  --amber-500: #f59e0b;
  --blue-500:  #3b82f6;

  --white: #ffffff;
  --body-bg: #ffffff;
  --body-color: #1e293b;
  --muted: #64748b;

  --radius:    0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.05);

  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--body-color);
  background: var(--body-bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

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

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

ul, ol { list-style: none; }

button { cursor: pointer; font-family: inherit; }

/* 3. Typography
   ---------------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: 1.125rem; font-weight: 600; }
h4 { font-size: 0.875rem; font-weight: 600; }

p { line-height: 1.7; }

/* 4. Layout
   ---------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.section {
  padding: 2.5rem 0;
}

@media (min-width: 768px)  { .section { padding: 4rem 0; } }
@media (min-width: 1024px) { .section { padding: 6rem 0; } }

.section-bg { background: var(--slate-50); }
.section-dark { background: var(--slate-900); }
.section-cyan { background: var(--cyan-600); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 { margin-bottom: 0.75rem; }

.section-header p {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 auto;
}

/* 5. Buttons
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
}

.btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--cyan-600);
  color: var(--white);
  border-color: var(--cyan-600);
}
.btn-primary:hover {
  background: var(--cyan-700);
  border-color: var(--cyan-700);
}

.btn-outline {
  background: transparent;
  color: var(--body-color);
  border-color: var(--slate-300);
}
.btn-outline:hover {
  border-color: var(--cyan-600);
  color: var(--cyan-600);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--slate-900);
  border-color: var(--slate-200);
}
.btn-secondary:hover {
  background: var(--slate-100);
}

.w-full { width: 100%; }

/* 6. Cards
   ---------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  border-color: var(--cyan-500);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-body { padding: 1.5rem; }

.card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--slate-100);
  position: relative;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* 7. Badges
   ---------------------------------------------------------- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 2rem;
  background: var(--cyan-100);
  color: var(--cyan-700);
}

.badge-recommended {
  background: var(--cyan-500);
  color: var(--white);
  padding: 0.35rem 0.875rem 0.35rem 1rem;
  border-radius: 0 0 0 var(--radius);
  position: absolute;
  top: 0;
  right: 0;
}

/* 8. Header
   ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.site-header.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--slate-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1.5rem;
}

@media (min-width: 1024px) { .header-inner { height: 5rem; } }

.header-logo img { height: 1.75rem; width: auto; }
@media (min-width: 640px) { .header-logo img { height: 2rem; } }

.header-nav { display: none; }

@media (min-width: 1024px) {
  .header-nav {
    display: block;
    flex: 1;
    padding: 0 1.5rem;
  }
  .header-nav ul {
    display: flex;
    gap: 1.5rem;
  }
  .header-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(15,23,42,.8);
    transition: color var(--transition);
  }
  .header-nav a:hover,
  .header-nav a.active { color: var(--cyan-600); }
}

.header-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 1024px) { .header-actions { display: flex; } }

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--body-color);
  transition: color var(--transition);
}
.header-phone:hover { color: var(--cyan-600); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
}
.lang-active { font-weight: 600; color: var(--cyan-600); }
.lang-sep { color: var(--muted); }
.lang-switch a { color: var(--muted); transition: color var(--transition); }
.lang-switch a:hover { color: var(--body-color); }

/* Burger */
.burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  color: var(--body-color);
  padding: 0.375rem;
}

@media (min-width: 1024px) { .burger { display: none; } }

/* Mobile Menu */
.mobile-menu {
  border-top: 1px solid var(--slate-200);
  background: var(--white);
  padding-bottom: 1.5rem;
}

.mobile-menu ul {
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu a {
  display: block;
  padding: 0.625rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--body-color);
  transition: color var(--transition);
}
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--cyan-600); }

.mobile-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--body-color);
}

/* 9. Hero Section
   ---------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 50%, var(--slate-900) 100%);
}

@media (min-width: 1024px) { .hero { min-height: 90vh; } }

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 25% 25%, rgba(6,182,212,.15) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(14,116,144,.1) 0%, transparent 50%);
}

.hero-inner {
  padding-top: 3rem;
  padding-bottom: 3rem;
  width: 100%;
}

@media (min-width: 768px)  { .hero-inner { padding-top: 4rem; padding-bottom: 4rem; } }
@media (min-width: 1024px) { .hero-inner { padding-top: 8rem; padding-bottom: 8rem; } }

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--slate-300);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-bullets {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--slate-200);
}

.hero-check {
  flex-shrink: 0;
  margin-top: 0.2rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgba(6,182,212,.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-trust {
  font-size: 0.875rem;
  color: var(--slate-400);
}

.hero-img-wrap {
  display: none;
}

@media (min-width: 1024px) { .hero-img-wrap { display: block; position: relative; } }

.hero-img-main {
  background: rgba(30,41,59,.5);
  border: 1px solid rgba(51,65,85,.5);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 25px 50px rgba(0,0,0,.3);
}

.hero-img-main img { border-radius: 0.5rem; width: 100%; }

.hero-img-float {
  position: absolute;
  bottom: -2rem;
  left: -2rem;
  background: rgba(30,41,59,.7);
  border: 1px solid rgba(51,65,85,.5);
  border-radius: 0.75rem;
  padding: 0.75rem;
  box-shadow: 0 10px 25px rgba(0,0,0,.2);
}

.hero-img-float img { width: 12rem; border-radius: 0.5rem; }

/* 10. Trust Strip
   ---------------------------------------------------------- */
.trust-strip {
  padding: 2rem 0;
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}

@media (min-width: 768px) { .trust-item { justify-content: flex-start; } }

.trust-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--cyan-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-600);
}

.trust-item span { font-size: 0.875rem; font-weight: 500; color: var(--slate-700); }

/* 11. Portfolio Section
   ---------------------------------------------------------- */
.portfolio-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px)  { .portfolio-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .portfolio-grid { grid-template-columns: 1fr 1fr 1fr; } }

.portfolio-card .card-body { padding: 1.5rem; }

.portfolio-card .badge { margin-bottom: 0.75rem; }

.portfolio-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-card .card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-tasks { margin-bottom: 1rem; }
.portfolio-tasks h4 { font-size: 0.8125rem; margin-bottom: 0.5rem; }
.portfolio-tasks ul { display: flex; flex-direction: column; gap: 0.25rem; }
.portfolio-tasks li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.portfolio-tasks li::before {
  content: '•';
  color: var(--cyan-500);
  margin-top: 0.05rem;
  flex-shrink: 0;
}

.portfolio-result { margin-bottom: 1rem; }
.portfolio-result h4 { font-size: 0.8125rem; margin-bottom: 0.25rem; }
.portfolio-result p { font-size: 0.8125rem; color: var(--muted); }

.portfolio-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cyan-600);
  transition: color var(--transition);
  margin-bottom: 0.75rem;
}
.portfolio-link:hover { color: var(--cyan-700); }

.portfolio-more {
  padding-top: 0.75rem;
  border-top: 1px solid var(--slate-200);
}
.portfolio-more a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-600);
  transition: color var(--transition);
}
.portfolio-more a:hover { color: var(--cyan-600); }

.section-cta { margin-top: 3rem; text-align: center; }

/* 12. Services Section
   ---------------------------------------------------------- */
.services-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px)  { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: 1fr 1fr 1fr; } }

.service-card .card-body { padding: 1.5rem; }

.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--cyan-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-600);
  margin-bottom: 1rem;
  transition: background var(--transition);
}

.service-card:hover .service-icon { background: #a5f3fc; }

.service-card h3 { margin-bottom: 0.5rem; }
.service-card .card-desc { font-size: 0.875rem; color: var(--muted); margin-bottom: 1rem; }

.service-features h4 { font-size: 0.8125rem; margin-bottom: 0.5rem; }
.service-features ul { display: flex; flex-direction: column; gap: 0.25rem; }
.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.service-features li::before {
  content: '•';
  color: var(--cyan-500);
  flex-shrink: 0;
}

/* 13. How We Work (Timeline)
   ---------------------------------------------------------- */
.timeline {
  position: relative;
  max-width: 100%;
}

.timeline::before {
  content: '';
  display: none;
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--cyan-500), var(--cyan-400), var(--cyan-300));
  transform: translateX(-50%);
}

@media (min-width: 768px) { .timeline::before { display: block; } }

.timeline-steps { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 768px) { .timeline-steps { gap: 3rem; } }

.timeline-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  position: relative;
}

@media (min-width: 768px) {
  .timeline-step { align-items: center; }
  .timeline-step:nth-child(odd) { flex-direction: row; }
  .timeline-step:nth-child(even) { flex-direction: row-reverse; }
}

.timeline-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--cyan-500);
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(6,182,212,.2);
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .timeline-num {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-content {
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  flex: 1;
  transition: box-shadow var(--transition);
}

.timeline-content:hover { box-shadow: var(--shadow-md); }

@media (min-width: 768px) {
  .timeline-content { width: calc(50% - 2rem); flex: none; }
  .timeline-step:nth-child(odd)  .timeline-content { margin-right: 50%; padding-right: 2rem; text-align: right; }
  .timeline-step:nth-child(even) .timeline-content { margin-left: 50%;  padding-left: 2rem; }
}

.timeline-content h3 { margin-bottom: 0.5rem; }
.timeline-content p { font-size: 0.9375rem; color: var(--muted); }

/* 14. Pricing Section
   ---------------------------------------------------------- */
.pricing-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

.pricing-card {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.pricing-card:hover { box-shadow: var(--shadow-lg); }

.pricing-card.featured {
  border-color: var(--cyan-500);
  border-width: 2px;
}

.pricing-card-header { padding: 1.5rem 1.5rem 1rem; }
.pricing-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.pricing-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--body-color);
  margin-bottom: 0.5rem;
}
.pricing-price-lg { font-size: 2.5rem; }
.pricing-desc { font-size: 0.875rem; color: var(--muted); }

.pricing-card-body { padding: 0 1.5rem 1.5rem; }

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.pricing-features .check-icon { flex-shrink: 0; margin-top: 0.1rem; color: var(--cyan-500); }

/* 15. FAQ Section
   ---------------------------------------------------------- */
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--slate-200);
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--body-color);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.faq-question:hover { color: var(--cyan-600); }

.faq-question[aria-expanded="true"] { color: var(--cyan-600); }

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
}

/* 16. Contacts Section
   ---------------------------------------------------------- */
.contacts-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) { .contacts-grid { grid-template-columns: 1fr 1fr; } }

.contact-info { display: flex; flex-direction: column; gap: 1rem; }

.contact-card {
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow-md); }

.contact-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--cyan-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-600);
}

.contact-card h3 { font-size: 1rem; margin-bottom: 0.25rem; }

.contact-card a {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--cyan-600);
  transition: color var(--transition);
}
.contact-card a:hover { color: var(--cyan-700); }

.contact-card p { font-size: 0.875rem; color: var(--muted); }

.contact-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.5rem; }

.contact-map {
  background: var(--slate-100);
  border-radius: var(--radius-xl);
  min-height: 25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.contact-map-inner {
  text-align: center;
  padding: 2rem;
}

.contact-map-inner svg { color: var(--slate-400); margin: 0 auto 1rem; display: block; }
.contact-map-inner p { color: var(--slate-500); }
.contact-map-inner .sub { font-size: 0.875rem; color: var(--slate-400); margin-top: 0.5rem; }

/* 17. Form Styles
   ---------------------------------------------------------- */
.form-group { display: flex; flex-direction: column; gap: 0.375rem; margin-bottom: 1.25rem; }

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--body-color);
}

.req { color: var(--red-500); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--body-color);
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(6,182,212,.15);
}

.form-group textarea { resize: vertical; min-height: 6rem; }

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--red-500);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.form-success {
  text-align: center;
  padding: 2rem 1rem;
}

.form-success h3 { font-size: 1.25rem; margin: 1rem 0 0.5rem; }
.form-success p { color: var(--muted); }

/* Contacts page full form */
.contact-form-card {
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-form-card h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }

/* 18. Modal
   ---------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal[hidden] { display: none; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 100%;
  max-width: 32rem;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0,0,0,.25);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--slate-100);
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: background var(--transition), color var(--transition);
}

.modal-close:hover { background: var(--slate-200); color: var(--body-color); }

.modal-box h2 { font-size: 1.5rem; margin-bottom: 0.375rem; padding-right: 2rem; }
.modal-subtitle { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.5rem; }

/* 19. Cookie Banner
   ---------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: var(--slate-900);
  color: var(--white);
  border-top: 1px solid var(--slate-700);
  padding: 1rem 0;
}

.cookie-banner[hidden] { display: none; }

.cookie-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .cookie-inner { flex-direction: row; justify-content: space-between; }
}

.cookie-inner p { font-size: 0.875rem; color: var(--slate-300); }
.cookie-inner a { text-decoration: underline; color: inherit; }
.cookie-inner a:hover { color: var(--white); }

/* 20. Footer
   ---------------------------------------------------------- */
.site-footer {
  background: var(--slate-900);
  color: var(--slate-200);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding: 3rem 0;
}

@media (min-width: 768px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; padding: 4rem 0; } }

.footer-brand { }
.footer-logo { filter: brightness(0) invert(1); height: 2rem; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.875rem; color: var(--slate-400); line-height: 1.6; }

.footer-nav h3,
.footer-contacts h3,
.footer-hours h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-100);
  margin-bottom: 1rem;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav a { font-size: 0.875rem; color: var(--slate-400); transition: color var(--transition); }
.footer-nav a:hover { color: var(--white); }

.footer-contacts ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contacts a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-400);
  transition: color var(--transition);
}
.footer-contacts a:hover { color: var(--white); }

.footer-hours p { font-size: 0.875rem; color: var(--slate-400); line-height: 1.8; }

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid var(--slate-800);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

.footer-bottom p { font-size: 0.875rem; color: var(--slate-400); }
.footer-inn { font-size: 0.75rem; color: var(--slate-500); margin-top: 0.25rem; }
.footer-bottom > a { font-size: 0.875rem; color: var(--slate-400); transition: color var(--transition); }
.footer-bottom > a:hover { color: var(--white); }

/* 21. Page Hero (inner pages)
   ---------------------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 50%, var(--slate-900) 100%);
  padding: 5rem 0;
  text-align: center;
}

@media (min-width: 1024px) { .page-hero { padding: 7rem 0; } }

.page-hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.page-hero p { font-size: 1.125rem; color: var(--slate-300); max-width: 42rem; margin: 0 auto; }

/* 22. Services Detail (services page)
   ---------------------------------------------------------- */
.service-detail {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) { .service-detail { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.service-detail-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: var(--cyan-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-600);
  margin-bottom: 1.5rem;
}

.service-detail h2 { margin-bottom: 1rem; }
.service-detail .sub { font-size: 1.125rem; color: var(--muted); margin-bottom: 1.5rem; }

.service-detail-features { margin-bottom: 2rem; }
.service-detail-features h3 { margin-bottom: 1rem; }
.service-detail-features ul { display: flex; flex-direction: column; gap: 0.75rem; }
.service-detail-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted);
}
.service-detail-features .check { flex-shrink: 0; margin-top: 0.1rem; color: var(--cyan-500); }

.service-detail-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

.service-img {
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--slate-100);
}
.service-img img { width: 100%; height: 100%; object-fit: cover; }

/* 23. Portfolio Detail (portfolio page)
   ---------------------------------------------------------- */
.portfolio-detail {
  display: grid;
  gap: 3rem;
  align-items: flex-start;
}

@media (min-width: 1024px) { .portfolio-detail { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.portfolio-detail .badge { margin-bottom: 1rem; }
.portfolio-detail h2 { margin-bottom: 1rem; }
.portfolio-detail .desc { font-size: 1.0625rem; color: var(--muted); margin-bottom: 1.5rem; }

.portfolio-tasks-detail { margin-bottom: 1.5rem; }
.portfolio-tasks-detail h3 { margin-bottom: 0.75rem; }
.portfolio-tasks-detail ul { display: flex; flex-direction: column; gap: 0.625rem; }
.portfolio-tasks-detail li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted);
}
.portfolio-tasks-detail li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--cyan-500);
  margin-top: 0.5rem;
}

.portfolio-result-box {
  background: var(--cyan-50);
  border: 1px solid #a5f3fc;
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.portfolio-result-box h3 { margin-bottom: 0.5rem; font-size: 0.9375rem; }
.portfolio-result-box p { font-size: 0.9375rem; color: var(--muted); }

.portfolio-detail-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--cyan-600);
  transition: color var(--transition);
}
.portfolio-detail-link:hover { color: var(--cyan-700); }

.portfolio-screenshot {
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.portfolio-screenshot .aspect-video {
  aspect-ratio: 16/9;
  background: var(--slate-100);
  overflow: hidden;
}
.portfolio-screenshot img { width: 100%; height: 100%; object-fit: cover; }

/* 24. Pricing Detail (pricing page)
   ---------------------------------------------------------- */
.pricing-table { display: none; }

@media (min-width: 768px) {
  .pricing-table { display: block; overflow-x: auto; }
}

.pricing-table table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table th, .pricing-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--slate-200);
  text-align: center;
}

.pricing-table th:first-child,
.pricing-table td:first-child { text-align: left; color: var(--muted); font-weight: 400; }

.pricing-table th { font-weight: 600; }
.pricing-table .tier-price { font-size: 1.125rem; font-weight: 700; color: var(--cyan-600); margin-top: 0.25rem; }

.pricing-mobile { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 768px) { .pricing-mobile { display: none; } }

.pricing-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.pricing-disclaimer svg { flex-shrink: 0; margin-top: 0.1rem; color: var(--muted); }

/* 25. Contacts Page
   ---------------------------------------------------------- */
.contact-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card-lg {
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.contact-card-lg:hover { box-shadow: var(--shadow-md); }

.contact-card-icon-lg {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: var(--cyan-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-600);
}

.contact-card-lg h2 { font-size: 1.0625rem; margin-bottom: 0.375rem; }
.contact-card-lg .big-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyan-600);
  transition: color var(--transition);
}
.contact-card-lg .big-link:hover { color: var(--cyan-700); }
.contact-card-lg .note { font-size: 0.875rem; color: var(--muted); margin-top: 0.375rem; }
.contact-card-lg .big-text { font-size: 1.0625rem; color: var(--body-color); }

.contact-how-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .contact-how-grid { grid-template-columns: repeat(3, 1fr); } }

.contact-how-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}
.contact-how-item h3 { font-size: 0.9375rem; margin-bottom: 0.5rem; }
.contact-how-item p { font-size: 0.875rem; color: var(--muted); }

.contact-requisites {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
}
.contact-requisites h3 { margin-bottom: 0.75rem; }
.contact-requisites .req-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: center; font-size: 0.875rem; color: var(--muted); }

/* 26. Privacy Page
   ---------------------------------------------------------- */
.privacy-content {
  max-width: 52rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.privacy-section {
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.privacy-section-inner {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.privacy-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: var(--cyan-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-600);
}

.privacy-section h2 { font-size: 1.375rem; margin-bottom: 1rem; }
.privacy-section h3 { font-size: 1.0625rem; font-weight: 600; margin: 1.25rem 0 0.75rem; }
.privacy-section p { color: var(--slate-600); line-height: 1.7; margin-bottom: 0.75rem; }
.privacy-section p:last-child { margin-bottom: 0; }

.privacy-section .highlight {
  background: var(--cyan-50);
  border-left: 4px solid var(--cyan-500);
  padding: 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1rem 0;
}

.privacy-section .highlight-amber {
  background: #fffbeb;
  border-left-color: var(--amber-500);
}

.privacy-section .highlight-blue {
  background: #eff6ff;
  border-left-color: var(--blue-500);
}

.privacy-check-list { display: flex; flex-direction: column; gap: 0.625rem; margin: 0.75rem 0; }
.privacy-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--slate-600);
}
.privacy-check-list .pi-check { flex-shrink: 0; margin-top: 0.1rem; color: var(--cyan-500); }

.privacy-info-box {
  background: var(--slate-50);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-top: 1rem;
}
.privacy-info-box .feat { display: flex; flex-direction: column; gap: 0.5rem; }
.privacy-info-box .feat-item { display: flex; gap: 0.5rem; font-size: 0.875rem; color: var(--slate-600); }
.privacy-info-box .feat-label { font-weight: 600; color: var(--slate-900); flex-shrink: 0; }

.privacy-final {
  background: linear-gradient(135deg, var(--slate-50), var(--cyan-50));
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
}
.privacy-final .sections-group { display: flex; flex-direction: column; gap: 2rem; }
.privacy-final h2 { font-size: 1.375rem; margin-bottom: 0.75rem; }
.privacy-final p { color: var(--slate-600); line-height: 1.7; }

.privacy-contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--slate-600);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}
.privacy-contact-row svg { color: var(--cyan-600); }
.privacy-contact-row a { color: var(--cyan-600); font-weight: 600; transition: color var(--transition); }
.privacy-contact-row a:hover { color: var(--cyan-700); }

/* 27. Internal Links Section
   ---------------------------------------------------------- */
.internal-links { text-align: center; }
.internal-links h2 { margin-bottom: 1.5rem; }
.link-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* 28. CTA Sections
   ---------------------------------------------------------- */
.cta-section { text-align: center; }
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { margin-bottom: 2rem; opacity: 0.85; max-width: 42rem; margin-left: auto; margin-right: auto; }
.cta-section p + .link-row { margin-top: 0; }

.section-dark .cta-section h2 { color: var(--white); }
.section-dark .cta-section p   { color: var(--slate-300); }

.section-cyan .cta-section h2 { color: var(--white); }
.section-cyan .cta-section p   { color: #cffafe; }

/* How We Work in services page (card grid)
   ---------------------------------------------------------- */
.work-cards { display: grid; gap: 1.5rem; }
@media (min-width: 768px)  { .work-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .work-cards { grid-template-columns: repeat(3, 1fr); } }

.work-card {
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.work-card-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--cyan-500);
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.work-card h3 { color: var(--white); margin-bottom: 0.5rem; }
.work-card p { color: var(--slate-400); font-size: 0.9375rem; }

/* 29. Utility
   ---------------------------------------------------------- */
.text-center { text-align: center; }
.text-white  { color: var(--white); }
.text-muted  { color: var(--muted); }
.text-cyan   { color: var(--cyan-600); }

.flex-wrap { display: flex; flex-wrap: wrap; gap: 1rem; }
.flex-center { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* 30. Animations
   ---------------------------------------------------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(1.5rem); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* 31. Loading state
   ---------------------------------------------------------- */
.btn-loading { opacity: 0.7; pointer-events: none; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
