/* Reset e variáveis CSS */
:root {
  --azul-noite: #002B5B;
  --coral-vivo: #FF6B6B;
  --areia-pessego: #F7C59F;
  --verde-neo-menta: #4ECDC4;
  --branco-limpo: #FFFFFF;
  --gradiente-botao: linear-gradient(45deg, var(--coral-vivo), var(--verde-neo-menta));
  --gradiente-fundo: linear-gradient(135deg, var(--azul-noite), var(--areia-pessego));
  --sombra-card: 0 2px 8px 16px rgba(0,0,0,0.08);
  --raio-borda: 12px;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--azul-noite);
  background: var(--branco-limpo);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px; /* Отступ для якорей чтобы заголовок был виден */
}

/* Tipografia */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 24px;
}

/* Container e Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.section:nth-child(even) {
  background: linear-gradient(135deg, rgba(0,43,91,0.03), rgba(247,197,159,0.1));
}

/* Animações */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation-delay: 0.2s;
}

.fade-in-2 {
  animation-delay: 0.4s;
}

.fade-in-3 {
  animation-delay: 0.6s;
}

/* Header */
.header {
  background: var(--azul-noite);
  color: var(--branco-limpo);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--sombra-card);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--coral-vivo);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--branco-limpo);
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-menu a:hover {
  color: var(--coral-vivo);
  transform: translateY(-2px);
}

/* Menu mobile */
.menu-toggle-checkbox {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--branco-limpo);
  transition: all 0.3s ease;
}

.menu-toggle-checkbox:checked + .nav .nav-menu {
  transform: translateX(0);
}

.menu-toggle-checkbox:checked ~ .menu-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle-checkbox:checked ~ .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-toggle-checkbox:checked ~ .menu-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Botões */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--raio-borda);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: var(--gradiente-botao);
  color: var(--branco-limpo);
}

.btn-secondary {
  background: transparent;
  color: var(--azul-noite);
  border: 2px solid var(--azul-noite);
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--sombra-card);
}

.btn:active {
  transform: translateY(0) scale(0.98);
  transition: all 0.1s ease;
}

/* Анимация для кнопки отправки формы */
.btn[type="submit"]:hover::after {
  content: ' ⏳';
  opacity: 0;
  animation: fadeInSending 0.3s ease-in-out;
}

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

/* Cards */
.card {
  background: var(--branco-limpo);
  border-radius: var(--raio-borda);
  padding: 2rem;
  box-shadow: var(--sombra-card);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradiente-botao);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Hero Section */
.hero {
  background: var(--gradiente-fundo);
  color: var(--branco-limpo);
  padding: 100px 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 48px;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 20px;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-image img {
  width: 100%;
  border-radius: var(--raio-borda);
  box-shadow: var(--sombra-card);
}

/* Grid de Serviços */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  position: relative;
}

.service-radio {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 20px;
  height: 20px;
  accent-color: var(--coral-vivo);
}

.service-image {
  margin: -2rem -2rem 1.5rem -2rem;
  border-radius: var(--raio-borda) var(--raio-borda) 0 0;
  overflow: hidden;
  height: 180px;
  position: relative;
}

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

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

.service-card h3 {
  margin-top: 0.5rem;
}

/* Grid de Vantagens */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.advantage-item {
  text-align: center;
  padding: 2rem;
}

.advantage-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: var(--gradiente-botao);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--branco-limpo);
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}

.timeline-item {
  position: relative;
  text-align: center;
  padding: 2rem;
  background: var(--branco-limpo);
  border-radius: var(--raio-borda);
  box-shadow: var(--sombra-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 43, 91, 0.15);
}

.timeline-step {
  background: var(--gradiente-botao);
  color: var(--branco-limpo);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 24px;
  margin: 0 auto 1.5rem;
  position: relative;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.timeline-content h3 {
  color: var(--azul-noite);
  margin-bottom: 1rem;
  font-size: 20px;
}

.timeline-content p {
  color: var(--azul-noite);
  opacity: 0.8;
  line-height: 1.6;
}

/* Depoimentos Slider */
.testimonials-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 2rem;
  padding: 1rem 0;
  margin-top: 2rem;
}

.testimonial-card {
  min-width: 300px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.testimonial-card blockquote {
  font-style: italic;
  font-size: 16px;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--coral-vivo);
}

/* Formulário */
.form-container {
  background: var(--gradiente-fundo);
  color: var(--branco-limpo);
  border-radius: var(--raio-borda);
  padding: 3rem;
  margin: 3rem auto 0;
  max-width: 800px; /* Ограничиваем максимальную ширину формы */
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: var(--raio-borda);
  font-size: 16px;
  background: var(--branco-limpo);
  color: var(--azul-noite);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
}

.checkbox-group label {
  font-size: 14px;
  margin-bottom: 0;
}

/* Footer */
.footer {
  background: var(--azul-noite);
  color: var(--branco-limpo);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--coral-vivo);
  margin-bottom: 1rem;
}

.footer-section a {
  color: var(--branco-limpo);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--coral-vivo);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
  opacity: 0.8;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--azul-noite);
  color: var(--branco-limpo);
  padding: 1rem;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.5s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(100%);
}

.cookie-banner.hidden {
  opacity: 0;
  transform: translateY(100%);
}

.cookie-banner:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
}

.cookie-text {
  flex: 1;
  font-size: 14px;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.cookie-accept {
  background: var(--coral-vivo);
  color: var(--branco-limpo);
}

.cookie-decline {
  background: transparent;
  color: var(--branco-limpo);
  border: 1px solid var(--branco-limpo);
}

/* Nav Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-toggle-checkbox:checked ~ .nav-overlay {
  display: block;
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-text h1 {
    font-size: 36px;
  }
  
  .timeline {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-container {
    padding: 2rem;
    margin: 2rem auto 0;
  }

  .about-grid {
    gap: 2rem;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .section {
    padding: 30px 0 50px;
  }
  
  #sobre.section {
    padding: 40px 0;
  }
  
  #servicos.section {
    padding-top: 40px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    right: 0;
    background: var(--azul-noite);
    width: 100%;
    height: calc(100vh - 70px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  
  .hero {
    padding: 60px 0;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 28px;
  }
  
  .hero-text p {
    font-size: 16px;
  }
  
  h1 {
    font-size: 24px;
  }
  
  h2 {
    font-size: 22px;
    margin-bottom: 0.5rem;
  }
  
  h3 {
    font-size: 20px;
  }
  
  .mb-2 {
    margin-bottom: 1.5rem;
  }
  
  .about-intro {
    font-size: 16px;
    padding: 0 15px;
    line-height: 1.4;
    margin-bottom: 1.5rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .about-mission, .about-values {
    padding: 1.25rem;
  }
  
  .about-values .mt-2 {
    margin-top: 1.5rem;
  }
  
  .values-list {
    display: block;
    text-align: left;
    margin: 0;
    padding-left: 0;
  }
  
  .values-list li {
    display: flex;
    align-items: flex-start;
    padding-left: 0;
    margin-bottom: 0.75rem;
    font-size: 15px;
  }
  
  .check-icon {
    color: var(--coral-vivo);
    font-weight: bold;
    margin-right: 10px;
    font-size: 16px;
  }
  
  .services-grid,
  .advantages-grid {
    grid-template-columns: 1fr;
  }
  
  .service-image {
    height: 160px;
  }
  
  .service-card {
    margin-bottom: 1rem;
  }
  
  .service-card h3 {
    font-size: 18px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .cookie-banner {
    padding: 1.5rem 1rem;
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-text {
    font-size: 13px;
    margin-bottom: 1rem;
  }
  
  .cookie-buttons {
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
  }
  
  .cookie-btn {
    width: 100%;
    padding: 10px 16px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .about-mission, .about-values {
    padding: 1.25rem;
  }
  
  .about-values .mt-2 {
    margin-top: 1.5rem;
  }
}

/* Utilitários */
.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 2rem;
}

.hidden {
  display: none;
}

/* Sobre section */
.about-intro {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.about-mission, .about-values {
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: var(--raio-borda);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-mission:hover, .about-values:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.about-mission h3, .about-values h3 {
  color: var(--azul-noite);
  margin-bottom: 1rem;
}

.about-values .mt-2 {
  margin-top: 0;
}

.values-list {
  margin-top: 1rem;
  list-style: none;
  padding: 0;
}

.values-list li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 0;
  display: flex;
  align-items: flex-start;
}

.check-icon {
  color: var(--coral-vivo);
  font-weight: bold;
  margin-right: 10px;
  display: inline-block;
}

/* Animações de hover personalizadas */
.service-card:hover {
  transform: translateY(-5px) scale(1.02);
}

.advantage-item:hover .advantage-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Scrollbar personalizada */
.testimonials-slider::-webkit-scrollbar {
  height: 8px;
}

.testimonials-slider::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
}

.testimonials-slider::-webkit-scrollbar-thumb {
  background: var(--gradiente-botao);
  border-radius: 4px;
}

.testimonials-slider::-webkit-scrollbar-thumb:hover {
  background: var(--coral-vivo);
} 