/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #2d3748;
  background: #ffffff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

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

/* Buttons */
.btn-primary {
  display: inline-block;
  background: #20B2AA;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #1a9b94;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #20B2AA;
  border: 2px solid #20B2AA;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #20B2AA;
  color: white;
}

/* Header */
.header {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo .name {
  font-size: 1.5rem;
  color: #2d3748;
  margin: 0;
}

.logo .title {
  color: #20B2AA;
  font-size: 1rem;
  margin: 0;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone-link {
  color: #2d3748;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

.messenger-links {
  display: flex;
  gap: 8px;
}

.messenger-btn {
  background: #20B2AA;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.messenger-btn:hover {
  background: #1a9b94;
  transform: scale(1.1);
}

.messenger-btn.telegram {
  background: #0088cc;
}

.messenger-btn.telegram:hover {
  background: #006ba8;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 60px 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
}

.hero-title,
.hero-subtitle,
.hero-approach {
  color: #2d3748;
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero-approach {
  margin-bottom: 30px;
}

.hero-features {
  margin-bottom: 30px;
}

.hero-features .feature {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.feature-icon {
  color: #20B2AA;
  font-weight: bold;
  font-size: 1.2rem;
}

.hero-cta {
  margin-top: 30px;
}

.cta-note {
  margin-top: 10px;
  color: #718096;
  font-size: 0.9rem;
}

.hero-image img {
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Section Titles */
.section-title {
  text-align: center;
  color: #2d3748;
  font-size: 2.2rem;
  margin-bottom: 50px;
  position: relative;
}

.section-title:after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #20B2AA;
  margin: 20px auto 0;
  border-radius: 2px;
}

/* Problem Recognition Section - Accordion Layout */
.problem-recognition-accordion {
  padding: 80px 0;
  background: #f8fafc;
}

.problems-accordion {
  max-width: 800px;
  margin: 0 auto 50px;
}

.problem-accordion-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.problem-accordion-item:hover {
  box-shadow: 0 5px 25px rgba(0,0,0,0.12);
}

.problem-accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
}

.problem-accordion-header:hover {
  background: #f8fafc;
}

.problem-accordion-header.active {
  background: #20B2AA;
  color: white;
}

.problem-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.3;
  flex: 1;
  margin-right: 20px;
}

.problem-accordion-header.active .problem-title {
  color: white;
}

.problem-accordion-icon {
  font-size: 1.3rem;
  font-weight: bold;
  color: #20B2AA;
  transition: transform 0.3s ease;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(32, 178, 170, 0.1);
}

.problem-accordion-header.active .problem-accordion-icon {
  transform: rotate(45deg);
  color: white;
  background: rgba(255, 255, 255, 0.2);
}

.problem-accordion-content {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.problem-accordion-content.active {
  max-height: 300px;
  padding: 20px 30px 30px;
}

.problem-accordion-content .problem-description {
  color: #4a5568;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.problem-accordion-content .solution-approach {
  color: #20B2AA;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
  padding: 16px 20px;
  background: rgba(32, 178, 170, 0.08);
  border-radius: 10px;
  border-left: 4px solid #20B2AA;
}

.empathy-statement {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.empathy-text {
  font-size: 1.3rem;
  color: #4a5568;
  margin-bottom: 30px;
  font-weight: 500;
}

/* Testimonials Section */
.testimonials {
  padding: 80px 0;
  background: white;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: #f8fafc;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-stars {
  margin-bottom: 20px;
}

.testimonial-stars span {
  font-size: 1.2rem;
}

.testimonial-text {
  color: #4a5568;
  font-size: 1.1rem;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 25px;
  position: relative;
}

.testimonial-text:before {
  content: '"';
  color: #20B2AA;
  font-size: 4rem;
  position: absolute;
  top: -20px;
  left: -10px;
  opacity: 0.3;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-info h4 {
  color: #2d3748;
  font-weight: 600;
  margin: 0 0 5px 0;
}

.author-info p {
  color: #718096;
  font-size: 0.9rem;
  margin: 0;
}


/* About Section */
.about {
  padding: 80px 0;
  background: white;
}

.about-text h3 {
  color: #20B2AA;
  margin-bottom: 15px;
  margin-top: 30px;
}

.about-text h3:first-child {
  margin-top: 0;
}

.about-text p {
  color: #4a5568;
  font-size: 1.1rem;
  line-height: 1.7;
}

.work-areas {
  list-style: none;
  padding: 0;
  margin: 0;
}

.work-areas li {
  color: #4a5568;
  font-size: 1.1rem;
  line-height: 1.7;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
  padding-left: 25px;
}

.work-areas li:last-child {
  border-bottom: none;
}

.work-areas li::before {
  content: "✓";
  color: #20B2AA;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 8px;
}

/* Services Section */
.services {
  padding: 80px 0;
  background: #f8fafc;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.service-card {
  background: white;
  border-radius: 8px;
  padding: 30px;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.service-card.featured {
  background: #f8fffe;
  border: 1px solid #20B2AA;
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.service-header h3 {
  color: #2d3748;
  margin: 0;
  flex: 1;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #20B2AA;
}

.duration {
  color: #718096;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.service-description {
  color: #4a5568;
  margin-bottom: 20px;
}

.format-options {
  margin-bottom: 20px;
}

.format {
  background: #e2e8f0;
  color: #4a5568;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-right: 8px;
}

/* Education Section */
.education {
  padding: 80px 0;
  background: white;
}

.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.education-item h3 {
  color: #20B2AA;
  margin-bottom: 30px;
}

.degree, .certificate {
  background: #f8fafc;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 20px;
  border-left: 4px solid #20B2AA;
}

.degree h4, .certificate h4 {
  color: #2d3748;
  margin-bottom: 8px;
}

.degree p, .certificate p {
  color: #4a5568;
  margin-bottom: 8px;
}

.year {
  color: #20B2AA;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Office Section */
.office {
  padding: 80px 0;
  background: #f8fafc;
}

.office-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.office-image img {
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.office-info h3 {
  color: #2d3748;
  margin-bottom: 10px;
}

.office-address {
  color: #20B2AA;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.office-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.office-features .feature {
  background: #20B2AA;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* Rules Section */
.rules {
  padding: 80px 0;
  background: #f7fafc;
}

.rules-accordion {
  max-width: 800px;
  margin: 40px auto 0;
}

.accordion-item {
  background: white;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  text-align: left;
  transition: background-color 0.3s ease;
}

.accordion-header:hover {
  background-color: #f8fafc;
}

.accordion-header.active {
  background-color: #20B2AA;
  color: white;
}

.accordion-icon {
  font-size: 1.2rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.active {
  max-height: 500px;
  padding: 20px 25px 25px;
}

.accordion-content p {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 12px;
}

.accordion-content p:last-child {
  margin-bottom: 0;
}

.fine-print {
  font-size: 0.9rem;
  color: #718096;
  font-style: italic;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
}

.accordion-content strong {
  color: #2d3748;
  font-weight: 600;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: white;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-methods {
  display: grid;
  gap: 16px;
  margin-bottom: 30px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 4px solid #20B2AA;
}

.contact-method:hover {
  background: #e2e8f0;
  transform: translateX(5px);
}

.method-icon {
  font-size: 1.5rem;
  color: #20B2AA;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.method-icon svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

/* Service-specific icon colors */
.whatsapp-icon {
  color: #25D366;
}

.telegram-icon {
  color: #0088cc;
}

.avito-icon {
  color: #84C441;
}

.vk-icon {
  color: #4C75A3;
}

/* Hover effects */
.contact-method:hover .method-icon svg {
  transform: scale(1.1);
}

.contact-method h4 {
  color: #2d3748;
  margin: 0 0 4px 0;
}

.contact-method p {
  color: #4a5568;
  margin: 0;
}

.location {
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
}

.location h4 {
  color: #20B2AA;
  margin-bottom: 8px;
}

/* Contact Form */
.contact-form {
  background: #f8fafc;
  padding: 40px;
  border-radius: 16px;
}

.contact-form h3 {
  color: #2d3748;
  margin-bottom: 15px;
}

.form-benefits {
  color: #20B2AA;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 30px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #2d3748;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #20B2AA;
}

.form-note {
  margin-top: 15px;
  color: #718096;
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background: #2d3748;
  color: white;
  padding: 40px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 20px;
}

.footer-info h3 {
  color: #20B2AA;
  margin-bottom: 10px;
}

.footer-contacts a {
  color: white;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.footer-contacts a:hover {
  color: #20B2AA;
}

.footer-messengers {
  margin-top: 10px;
}

.footer-messengers a {
  display: inline-block;
  margin-right: 15px;
}

.footer-bottom {
  border-top: 1px solid #4a5568;
  padding-top: 20px;
  text-align: center;
  color: #a0aec0;
}

/* Sticky CTA Button */
.sticky-cta {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: none;
  transition: bottom 0.3s ease;
}

.sticky-cta-btn {
  background: #20B2AA;
  color: white;
  padding: 16px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(32, 178, 170, 0.3);
  transition: all 0.3s ease;
  white-space: nowrap;
  font-size: 1rem;
}

.sticky-cta-btn:hover {
  background: #1a9b94;
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(32, 178, 170, 0.4);
}

.sticky-cta.show {
  display: block;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .header-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-title, .hero-subtitle, .hero-approach {
    font-size: 1.1rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  /* Fix services section mobile spacing - Issue 1 */
  .service-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .service-header h3 {
    margin-bottom: 0;
    line-height: 1.3;
  }
  
  .price {
    align-self: flex-start;
  }
  
  .rules-accordion {
    margin: 30px auto 0;
  }
  
  .accordion-header {
    padding: 15px 20px;
    font-size: 1rem;
  }
  
  .accordion-content.active {
    padding: 15px 20px 20px;
  }
  
  .education-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .office-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
  
  .problems-accordion {
    margin: 0 auto 40px;
  }
  
  .problem-accordion-header {
    padding: 20px 25px;
  }
  
  .problem-title {
    font-size: 1.1rem;
    margin-right: 15px;
  }
  
  .problem-accordion-content.active {
    padding: 18px 25px 25px;
  }
  
  
  .empathy-statement {
    padding: 30px 20px;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Fix sticky CTA button footer overlap - Issue 2 */
  .sticky-cta {
    display: block !important;
    bottom: 20px;
  }
  
  .sticky-cta-btn {
    padding: 14px 20px;
    font-size: 0.9rem;
  }
  
  /* Extend footer background to fill bottom space instead of white margin */
  .footer {
    padding-bottom: 60px; /* 40px for spacing + 20px extra for visual balance */
  }
}

/* Tablet Styles */
@media (max-width: 900px) and (min-width: 481px) {
  .problems-accordion {
    margin: 0 auto 40px;
  }
  
  .problem-accordion-header {
    padding: 22px 28px;
  }
  
  .problem-title {
    font-size: 1.15rem;
  }
}

@media (max-width: 480px) {
  .hero-title, .hero-subtitle, .hero-approach {
    font-size: 1.05rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    padding: 20px;
  }
  
  /* Enhanced mobile spacing for service cards */
  .service-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }
  
  .service-header h3 {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 0;
  }
  
  .price {
    font-size: 1.4rem;
    margin-top: 4px;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
  
  /* Enhanced sticky CTA positioning for very small screens */
  .sticky-cta {
    bottom: 20px;
  }
  
  .footer {
    padding-bottom: 60px; /* 40px for spacing + 20px extra for visual balance */
  }
  
  .problem-accordion-header {
    padding: 18px 20px;
  }
  
  .problem-title {
    font-size: 1.05rem;
    margin-right: 12px;
  }
  
  .problem-accordion-content.active {
    padding: 16px 20px 20px;
  }
  
  .problem-accordion-content .problem-description {
    font-size: 1rem;
  }
  
  .problem-accordion-content .solution-approach {
    font-size: 0.95rem;
    padding: 14px 16px;
  }
  
  .testimonial-card {
    padding: 20px;
  }
  
  .empathy-text {
    font-size: 1.1rem;
  }
  
  .sticky-cta-btn {
    padding: 12px 18px;
    font-size: 0.85rem;
  }
}