@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards;
}

.reveal.delay-1 {
  animation-delay: 0.15s;
}

.reveal.delay-2 {
  animation-delay: 0.3s;
}

@keyframes pageFadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.fade-out {
  animation: pageFadeOut 0.5s ease forwards;
}

.theme-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

.theme-toggle-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.theme-icon {
  transition: transform 0.3s ease;
}

.theme-toggle-btn:hover .theme-icon {
  transform: rotate(180deg);
}

.hero {
  position: relative;
  padding: 36px 22px 64px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(90vw 90vw at -10% -20%, rgba(20,144,138,.25) 0%, rgba(20,144,138,0) 60%),
    linear-gradient(135deg, var(--sp-primary) 0%, #0e5b66 52%, #0b4b56 100%);
  overflow: hidden;
}

.hero-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.6;
  mix-blend-mode: screen;
}

.hero-logo {
  display: block;
  margin: 6px auto 6px;
  max-width: min(680px, 82vw);
  height: auto;
}

.hero p {
  font-size: 1.12rem;
  max-width: 860px;
  margin: 0 auto 18px;
  color: #e6eef1;
}

.hero-lead {
  margin-top: -22px;
}

.hero-actions {
  margin-top: 8px;
}

.hero .btn-cta {
  position: absolute;
  top: 22px;
  right: 22px;
  background: #fff;
  color: #0f3f46;
  border: 1px solid rgba(255,255,255,.35);
  font-weight: 800;
  border-radius: 10px;
  padding: 10px 16px;
  text-decoration: none;
}

.hero .btn-cta:hover {
  filter: none;
  background: #f3f7f8;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  padding: 13px 28px;
  font-size: 1.05rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
}

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

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

.btn-primary {
  background: linear-gradient(135deg, #F07F03 0%, #d66f03 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(240, 127, 3, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 127, 3, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  background: #fff;
  border: 2px solid var(--sp-border);
  padding: 10px 20px;
  border-radius: 12px;
  color: var(--sp-text);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--sp-primary-2);
  color: var(--sp-primary-2);
  background: rgba(20, 144, 138, 0.05);
  transform: translateY(-1px);
}

.btn-fill {
  background: linear-gradient(135deg, #F07F03 0%, #d66f03 100%);
  color: #fff;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(240, 127, 3, 0.25);
  transition: all 0.3s ease;
}

.btn-fill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(240, 127, 3, 0.35);
}

.btn-fill[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-fill[disabled]:hover {
  transform: none;
  box-shadow: none;
}

.section {
  padding: 70px 22px;
  text-align: center;
}

.section h2 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 2.1rem;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.section p {
  font-size: 1.05rem;
  max-width: 880px;
  margin: 0 auto 18px;
  color: #31434a;
}

.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 48px;
}

.service-card {
  width: 290px;
  min-height: 260px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 3px solid transparent;
  border-radius: 20px;
  box-shadow: 
    0 8px 24px rgba(21, 46, 63, 0.08),
    0 2px 8px rgba(21, 46, 63, 0.04);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  color: var(--sp-text);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 3px;
  background: linear-gradient(135deg, var(--sp-coral) 0%, var(--sp-primary-2) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--sp-coral) 0%, var(--sp-primary-2) 100%);
  border-radius: 20px 20px 0 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  transform: translateY(-16px) scale(1.02);
  box-shadow: 
    0 20px 48px rgba(240, 127, 3, 0.2),
    0 8px 16px rgba(20, 144, 138, 0.15);
  background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  width: 85px;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sp-primary-2) 0%, #0d7a75 100%);
  border-radius: 50%;
  margin-bottom: 20px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 
    0 4px 16px rgba(20, 144, 138, 0.3),
    0 0 0 0 rgba(240, 127, 3, 0);
  position: relative;
  flex-shrink: 0;
}

.icon-emoji {
  font-size: 2.5rem;
  display: block;
  line-height: 1;
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease;
}

.service-icon::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 3px solid var(--sp-coral);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .service-icon {
  transform: scale(1.15) rotate(10deg);
  background: linear-gradient(135deg, var(--sp-coral) 0%, #d66f03 100%);
  box-shadow: 
    0 8px 24px rgba(240, 127, 3, 0.4),
    0 0 0 8px rgba(240, 127, 3, 0.1);
}

.service-card:hover .icon-emoji {
  transform: scale(1.1);
}

.service-card:hover .service-icon::after {
  opacity: 1;
  transform: scale(1.2);
  border-color: var(--sp-primary-2);
}

.service-card h3 {
  font-size: 1.28rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--sp-text);
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--sp-primary-2);
}

.service-card p {
  font-size: 0.98rem;
  color: #5a6c75;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.service-card:hover p {
  color: #2d3748;
}

.with-divider {
  display: inline-block;
}

.with-divider span {
  display: block;
}

.with-divider span + span {
  position: relative;
  padding-top: 0.35em;
}

.with-divider span + span::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 0;
  height: 1px;
  background: #cfd4d7;
  border-radius: 1px;
}

.sp-divider {
  width: min(760px, 86%);
  height: 1px;
  margin: 34px auto 28px;
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, #cbd1d6 18%, #cbd1d6 82%, rgba(0,0,0,0) 100%);
  opacity: 0.9;
  border-radius: 1px;
}

.about-text {
  margin-top: 46px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.about-text h2,
.about-text h3 {
  margin: 16px 0 10px;
}

.about-text p {
  margin: 8px 0 14px;
  color: #2f3e44;
}

.about-text ul {
  margin: 6px auto 14px;
  display: block;
  max-width: 880px;
  text-align: left;
  padding-left: 20px;
}

.about-text li {
  margin: 6px 0;
}

.timeline {
  list-style: none;
  padding-left: 32px;
  margin: 12px auto 20px;
  max-width: 880px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--sp-primary) 0%, var(--sp-primary-2) 50%, var(--sp-coral) 100%);
  opacity: 0.4;
}

.timeline li {
  position: relative;
  background: #fff;
  border: 2px solid var(--sp-border);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 16px 0;
  box-shadow: 0 4px 16px rgba(21,46,63,.08);
  transition: all 0.3s ease;
}

.timeline li:hover {
  border-color: var(--sp-primary-2);
  box-shadow: 0 6px 24px rgba(21,46,63,.12);
  transform: translateX(4px);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sp-primary-2) 0%, #0d7a75 100%);
  box-shadow: 0 0 0 4px rgba(20,144,138,.2), 0 2px 6px rgba(20,144,138,.3);
  transition: all 0.3s ease;
}

.timeline li:hover::before {
  transform: scale(1.2);
  background: linear-gradient(135deg, var(--sp-coral) 0%, #d66f03 100%);
  box-shadow: 0 0 0 6px rgba(240,127,3,.25), 0 2px 8px rgba(240,127,3,.4);
}

.timeline li strong {
  display: block;
  margin-bottom: 8px;
  color: var(--sp-primary-2);
  font-weight: 700;
  font-size: 1.05rem;
}

.contacts-lead {
  max-width: 820px;
  margin: 0 auto 24px;
  color: #31434a;
}

.contacts-box {
  width: min(740px, 92%);
  margin: 0 auto;
  background: #fff;
  border: 2px solid var(--sp-border);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(21,46,63,.08);
  padding: 28px 24px;
  text-align: left;
  transition: all 0.3s ease;
}

.contacts-box:hover {
  border-color: var(--sp-primary-2);
  box-shadow: 0 6px 28px rgba(21,46,63,.12);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 14px 0;
  font-size: 1.05rem;
  align-items: center;
}

.contact-label {
  font-weight: 700;
  color: var(--sp-text);
}

.contacts-box a {
  text-decoration: none;
  color: var(--sp-primary-2);
  font-weight: 600;
  transition: all 0.2s ease;
  padding: 2px 4px;
  border-radius: 6px;
}

.contacts-box a:hover {
  color: var(--sp-coral);
  background: rgba(240, 127, 3, 0.1);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(21, 46, 63, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-backdrop.show {
  display: flex;
}

.modal {
  background: #fff;
  border: 2px solid var(--sp-primary-2);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(21, 46, 63, 0.3);
  width: min(740px, 92vw);
  max-height: 88vh;
  overflow: auto;
  padding: 28px;
  animation: fadeSlideUp 0.3s ease-out;
}

.modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--sp-surface-2);
}

.modal h3 {
  font-family: var(--font-brand);
  font-size: 1.5rem;
  margin: 0;
  color: var(--sp-text);
  font-weight: 700;
}

.modal .close-btn {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  color: #6b7280;
  transition: all 0.2s ease;
  padding: 4px 8px;
  border-radius: 8px;
}

.modal .close-btn:hover {
  background: var(--sp-surface-2);
  color: var(--sp-text);
  transform: rotate(90deg);
}

.modal footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px solid var(--sp-surface-2);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.field label {
  font-weight: 700;
  margin: 0 0 4px;
  display: flex;
  align-items: flex-end;
  min-height: 38px;
  line-height: 1.3;
  color: var(--sp-text);
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--sp-border);
  border-radius: 12px;
  font: inherit;
  height: 48px;
  background: #fff;
  transition: all 0.3s ease;
  font-size: 0.98rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sp-primary-2);
  box-shadow: 0 0 0 3px rgba(20, 144, 138, 0.1);
}

.field textarea {
  min-height: 100px;
  resize: vertical;
  height: auto;
  padding: 12px 14px;
}

.helper {
  font-size: 0.88rem;
  color: #6b7280;
  margin-top: 4px;
  line-height: 1.4;
}

.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 10px;
  text-align: left;
  font-size: 0.92rem;
  color: #2f3e44;
}

.agree-row .agree-text {
  flex: 1;
}

.agree-row .agree-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  white-space: nowrap;
  cursor: pointer;
}

.agree-row .agree-ctrl input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.status-note {
  font-size: 0.95rem;
  margin-right: auto;
  align-self: center;
}

.status-note.success {
  color: #1a8f6e;
}

.status-note.error {
  color: #b9473a;
}

footer {
  background: var(--sp-surface-2);
  border-top: 1px solid var(--sp-border);
  text-align: center;
  padding: 26px;
  font-size: 0.95rem;
  color: #3a4650;
  margin-top: 70px;
}

:root[data-theme="dark"] {
  .hero {
    background:
      radial-gradient(90vw 90vw at -10% -20%, rgba(20,144,138,.15) 0%, rgba(20,144,138,0) 60%),
      linear-gradient(135deg, #0a1a2e 0%, #152E3F 52%, #1a2332 100%);
  }
  
  .service-card {
    background: var(--sp-surface);
    border-color: var(--sp-border);
    color: var(--sp-text);
  }
  
  .service-card:hover {
    background: var(--sp-surface-2);
    border-color: var(--sp-primary-2);
  }
  
  .timeline li {
    background: var(--sp-surface);
    border-color: var(--sp-border);
    color: var(--sp-text);
  }
  
  .timeline li:hover {
    border-color: var(--sp-primary-2);
  }
  
  .timeline li strong {
    color: var(--sp-primary-2);
  }
  
  .about-text {
    color: var(--sp-text);
  }
  
  .about-text p {
    color: var(--sp-text-muted);
  }
  
  .footer {
    background: var(--sp-surface);
    color: var(--sp-text);
  }
  
  .footer a {
    color: var(--sp-text-muted);
  }
  
  .footer a:hover {
    color: var(--sp-primary-2);
  }
  
  .modal {
    background: var(--sp-surface);
    color: var(--sp-text);
  }
  
  .modal header {
    border-bottom-color: var(--sp-border);
  }
  
  .modal .field input,
  .modal .field textarea {
    background: var(--sp-surface-2);
    border-color: var(--sp-border);
    color: var(--sp-text);
  }
  
  .modal .field input:focus,
  .modal .field textarea:focus {
    border-color: var(--sp-primary-2);
  }
  
  .btn {
    color: var(--sp-text);
  }
  
  .btn-outline {
    border-color: var(--sp-border);
    color: var(--sp-text);
  }
  
  .btn-outline:hover {
    background: var(--sp-surface-2);
    border-color: var(--sp-primary-2);
  }
  
  .contacts-lead {
    color: var(--sp-text-muted);
  }
  
  .contacts-box {
    background: var(--sp-surface);
    border-color: var(--sp-border);
    color: var(--sp-text);
  }
  
  .contacts-box:hover {
    border-color: var(--sp-primary-2);
  }
  
  .contact-label {
    color: var(--sp-text);
  }
  
  .contacts-box a {
    color: var(--sp-primary-2);
  }
  
  .contacts-box a:hover {
    color: var(--sp-coral);
    background: rgba(240, 127, 3, 0.1);
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 28px 16px 48px;
  }

  .hero-logo {
    max-width: min(320px, 86vw);
    margin: 4px auto 6px;
  }

  .hero-lead {
    margin-top: -16px;
  }

  .hero .btn-cta {
    position: static;
    margin: 8px auto 0;
    display: inline-block;
  }

  .service-card {
    width: 100%;
    max-width: 360px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .about-text {
    margin-top: 34px;
    padding: 0 4px;
  }
}

/* Partners Section */
.partners-section {
  max-width: 1200px;
  margin: 0 auto;
}

.partners-lead {
  font-size: 1.05rem;
  color: #5a6c75;
  margin-bottom: 32px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
  margin-top: 48px;
  align-items: center;
  justify-items: center;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  height: 100px;
  padding: 10px;
  background: var(--sp-primary-dark);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(21, 46, 63, 0.2);
}

.partner-logo:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: var(--sp-primary-2);
  box-shadow: 
    0 12px 32px rgba(20, 144, 138, 0.3),
    0 4px 12px rgba(20, 144, 138, 0.2);
  background: linear-gradient(135deg, var(--sp-primary-dark) 0%, #1a3a4f 100%);
}

.partner-logo img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(1.1) contrast(1.05);
  transition: all 0.3s ease;
}

.partner-logo:hover img {
  filter: brightness(1.2) contrast(1.1);
  transform: scale(1.1);
}

.partner-text-card {
  flex-direction: column;
  text-align: center;
}

.partner-text-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.partner-text-card .partner-text-number,
.partner-text-number {
  font-family: var(--font-brand);
  font-size: 1.8rem;
  font-weight: 800;
  color: #F07F03 !important;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(240, 127, 3, 0.3);
}

.partner-text-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.2;
  text-align: center;
  padding: 0 4px;
}

.partner-text-card:hover .partner-text-number {
  color: #F07F03 !important;
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.partner-text-card:hover .partner-text-label {
  color: #ffffff;
}

@media (max-width: 1400px) {
  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .partner-logo {
    max-width: 100%;
    height: 90px;
    padding: 10px;
  }
  
  .partner-logo img {
    max-height: 60px;
  }
  
  .partner-text-number {
    font-size: 1.5rem;
  }
  
  .partner-text-label {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .partner-logo {
    height: 80px;
    padding: 8px;
  }
  
  .partner-logo img {
    max-height: 50px;
  }
  
  .partner-text-number {
    font-size: 1.3rem;
  }
  
  .partner-text-label {
    font-size: 0.6rem;
  }
}

[data-theme="dark"] .partner-logo {
  background: var(--sp-primary-dark);
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .partner-logo:hover {
  background: linear-gradient(135deg, var(--sp-primary-dark) 0%, #1a3a4f 100%);
  border-color: var(--sp-primary-2);
}

[data-theme="dark"] .partners-lead {
  color: var(--sp-text-muted);
}