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

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

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 23px;
  line-height: 1.5;
  color: #1A202C;
  background: #F7FAFC;
  overflow-x: hidden;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 32px;
  font-weight: 700;
  color: #A32937;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-size: 16px;
  color: #2D3748;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: #A32937;
  background: rgba(163, 41, 55, 0.05);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: #2D3748;
  cursor: pointer;
  padding: 8px;
}

.top {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(163,41,55,0.85) 0%, rgba(52,138,40,0.75) 50%, rgba(57,74,198,0.85) 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%234A5568" width="1200" height="600"/></svg>');
  background-size: cover;
  background-position: center;
  padding: 64px 24px;
  overflow: hidden;
}

.top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 30%, rgba(163,41,55,0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(52,138,40,0.3) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(57,74,198,0.2) 0%, transparent 60%);
  z-index: 1;
}

.top-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.top h1 {
  font-size: 90px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -2px;
}

.top p {
  font-size: 32px;
  color: rgba(255,255,255,0.95);
  margin-bottom: 48px;
  font-weight: 400;
}

.btn-primary {
  display: inline-block;
  padding: 16px 48px;
  background: #A32937;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: 2px solid #A32937;
}

.btn-primary:hover {
  background: #8A1F2E;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(163,41,55,0.3);
}

.btn-secondary {
  display: inline-block;
  padding: 16px 48px;
  background: transparent;
  color: #A32937;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid #A32937;
  transition: all 0.3s ease;
  margin-left: 16px;
}

.btn-secondary:hover {
  background: #A32937;
  color: #fff;
  transform: translateY(-2px);
}

.block {
  padding: 64px 24px;
}

.block-alt {
  background: #fff;
}

.block h2 {
  font-size: 64px;
  font-weight: 700;
  color: #1A202C;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.block h3 {
  font-size: 45px;
  font-weight: 600;
  color: #2D3748;
  margin-bottom: 16px;
}

.block p {
  font-size: 23px;
  color: #4A5568;
  margin-bottom: 24px;
  line-height: 1.6;
}

.flex {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 48px;
}

.box {
  flex: 1 1 calc(33.333% - 32px);
  min-width: 280px;
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.box:nth-child(1) {
  animation-delay: 0.1s;
}

.box:nth-child(2) {
  animation-delay: 0.2s;
}

.box:nth-child(3) {
  animation-delay: 0.3s;
}

.box:nth-child(4) {
  animation-delay: 0.4s;
}

.box:nth-child(5) {
  animation-delay: 0.5s;
}

.box:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.box h3 {
  font-size: 32px;
  color: #A32937;
  margin-bottom: 16px;
}

.box p {
  font-size: 16px;
  color: #4A5568;
  line-height: 1.6;
}

.box-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #A32937, #8A1F2E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 28px;
  color: #fff;
}

.tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  border-bottom: 2px solid #E2E8F0;
}

.tab-btn {
  padding: 16px 32px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: #718096;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.tab-btn:hover {
  color: #A32937;
}

.tab-btn.active {
  color: #A32937;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #A32937;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

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

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-control {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  border: 2px solid #E2E8F0;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: #A32937;
  box-shadow: 0 0 0 3px rgba(163,41,55,0.1);
}

.form-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #718096;
  font-size: 16px;
  pointer-events: none;
  transition: all 0.3s ease;
  background: #fff;
  padding: 0 4px;
}

.form-control:focus + .form-label,
.form-control:not(:placeholder-shown) + .form-label {
  top: 0;
  font-size: 11px;
  color: #A32937;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-control + .form-label {
  top: 16px;
  transform: none;
}

textarea.form-control:focus + .form-label,
textarea.form-control:not(:placeholder-shown) + .form-label {
  top: -10px;
}

.submit-btn {
  padding: 16px 48px;
  background: #A32937;
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: #8A1F2E;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(163,41,55,0.3);
}

.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
}

.portfolio-item {
  flex: 1 1 calc(50% - 24px);
  min-width: 300px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4/3;
  background: #E2E8F0;
}

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

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

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(26,32,44,0.9), transparent);
  padding: 32px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-overlay h3 {
  font-size: 32px;
  color: #fff;
  margin-bottom: 8px;
}

.portfolio-overlay p {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
}

.testimonial {
  background: #fff;
  padding: 48px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 32px;
  border-left: 4px solid #A32937;
}

.testimonial-text {
  font-size: 23px;
  color: #2D3748;
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.6;
}

.testimonial-author {
  font-size: 16px;
  font-weight: 600;
  color: #A32937;
}

.testimonial-role {
  font-size: 16px;
  color: #718096;
}

.footer {
  background: #2D3748;
  color: #fff;
  padding: 64px 24px 32px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto 48px;
}

.footer-col {
  flex: 1 1 250px;
}

.footer h4 {
  font-size: 32px;
  margin-bottom: 24px;
  color: #fff;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #A32937;
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 16px;
  color: rgba(255,255,255,0.6);
}

.pricing-table {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 48px;
}

.pricing-box {
  flex: 1 1 calc(33.333% - 32px);
  min-width: 280px;
  background: #fff;
  padding: 48px 32px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.pricing-box:hover {
  border-color: #A32937;
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.pricing-box.featured {
  border-color: #A32937;
  box-shadow: 0 8px 20px rgba(163,41,55,0.2);
}

.pricing-box h3 {
  font-size: 32px;
  color: #2D3748;
  margin-bottom: 16px;
}

.price {
  font-size: 64px;
  font-weight: 700;
  color: #A32937;
  margin-bottom: 8px;
}

.price-period {
  font-size: 16px;
  color: #718096;
  margin-bottom: 32px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  text-align: left;
}

.pricing-features li {
  padding: 12px 0;
  font-size: 16px;
  color: #4A5568;
  border-bottom: 1px solid #E2E8F0;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.faq-item {
  background: #fff;
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.faq-question {
  width: 100%;
  padding: 24px 32px;
  background: none;
  border: none;
  text-align: left;
  font-size: 23px;
  font-weight: 600;
  color: #2D3748;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: #A32937;
}

.faq-icon {
  font-size: 23px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 32px 24px;
  font-size: 16px;
  color: #4A5568;
  line-height: 1.6;
}

.cta-section {
  background: linear-gradient(135deg, #A32937, #8A1F2E);
  padding: 96px 24px;
  text-align: center;
  color: #fff;
}

.cta-section h2 {
  font-size: 64px;
  color: #fff;
  margin-bottom: 24px;
}

.cta-section p {
  font-size: 32px;
  color: rgba(255,255,255,0.95);
  margin-bottom: 48px;
}

.btn-white {
  display: inline-block;
  padding: 16px 48px;
  background: #fff;
  color: #A32937;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,255,255,0.3);
}

.stat-box {
  text-align: center;
  padding: 32px;
}

.stat-number {
  font-size: 64px;
  font-weight: 700;
  color: #A32937;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 16px;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.img-full {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 32px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media screen and (max-width: 960px) {
  .top h1 {
    font-size: 64px;
  }

  .top p {
    font-size: 23px;
  }

  .block h2 {
    font-size: 45px;
  }

  .block h3 {
    font-size: 32px;
  }

  .box {
    flex: 1 1 calc(50% - 32px);
  }

  .pricing-box {
    flex: 1 1 calc(50% - 32px);
  }

  .portfolio-item {
    flex: 1 1 100%;
  }
}

@media screen and (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 16px;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .main-nav {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    width: 280px;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    gap: 16px;
  }

  body.menu-open .main-nav {
    transform: translateX(0);
  }

  .nav-link {
    width: 100%;
  }

  .top {
    min-height: 400px;
    padding: 48px 16px;
  }

  .top h1 {
    font-size: 45px;
  }

  .top p {
    font-size: 16px;
  }

  .block {
    padding: 48px 16px;
  }

  .block h2 {
    font-size: 32px;
  }

  .block h3 {
    font-size: 23px;
  }

  .box {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .flex {
    gap: 24px;
  }

  .pricing-box {
    flex: 1 1 100%;
  }

  .btn-secondary {
    margin-left: 0;
    margin-top: 16px;
  }

  .footer-content {
    gap: 32px;
  }

  .cta-section {
    padding: 64px 16px;
  }

  .cta-section h2 {
    font-size: 45px;
  }

  .cta-section p {
    font-size: 23px;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .tab-btn {
    flex: 1 1 auto;
    padding: 12px 16px;
    font-size: 16px;
  }
}

@media screen and (max-width: 450px) {
  .top h1 {
    font-size: 32px;
  }

  .block h2 {
    font-size: 23px;
  }

  .price {
    font-size: 45px;
  }

  .stat-number {
    font-size: 45px;
  }
}
