/* Полностью переписан CSS для соответствия оригинальному дизайну из Next.js */

/* CSS Variables matching the original design */
:root {
  --background: oklch(0.98 0.01 240);
  --foreground: oklch(0.15 0.02 240);
  --card: oklch(0.99 0.005 240);
  --card-foreground: oklch(0.15 0.02 240);
  --primary: oklch(0.45 0.25 15);
  --primary-foreground: oklch(0.98 0.01 240);
  --secondary: oklch(0.35 0.2 240);
  --secondary-foreground: oklch(0.98 0.01 240);
  --muted: oklch(0.94 0.01 240);
  --muted-foreground: oklch(0.55 0.02 240);
  --border: oklch(0.9 0.01 240);
  --radius: 0.625rem;
}

.footer-section a {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    text-decoration: none;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
}

.container {
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (max-width: 1540px){
  .container {
    max-width: 1200px;
  }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
}

.shield-icon {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--primary);
}

.btn-primary {
   box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  background: #a7002f;
 color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: #272727;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid #272727;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.btn-outline:hover {
   opacity: 0.9;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 5rem 0 8rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(0, 57, 149, 0.2) 0%, rgba(255, 41, 41, 0.1) 100%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.badge {
  display: inline-block;
  background-color: rgba(220, 38, 38, 0.1);
  color: var(--primary);
  border: 1px solid rgba(220, 38, 38, 0.2);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.title-line1 {
  color: var(--foreground);
}

.title-line2 {
  color: var(--primary);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 2rem;
}

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

@media (max-width: 962px){
  .hero-buttons {
    flex-direction: column;
  }
   .hero-buttons a{
     width: 100%;
    justify-content: center;
   }
}

.hero-image-wrapper {
  position: relative;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-badge-icon {
  background-color: rgba(220, 38, 38, 0.1);
  padding: 0.75rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: c;
}

.hero-badge-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.hero-badge-title {
  font-weight: 600;
  color: var(--foreground);
}

.hero-badge-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Services Section */
.services {
  padding: 5rem 0;
  background-color: rgba(0, 0, 0, 0.02);
}

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

.section-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow 0.3s;
}

.card .price{
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 133%;
  color: #040c13;
  margin-top: 0.8rem;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon.primary {
  background-color: rgba(220, 38, 38, 0.1);
}

.card-icon.secondary {
  background-color: rgba(0, 0, 139, 0.1);
}

.card-icon svg {
  width: 2rem;
  height: 2rem;
}

.card-icon.primary svg {
  color: var(--primary);
}

.card-icon.secondary svg {
  color: var(--secondary);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.card-description {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.card-list {
  list-style: none;
}

.card-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.card-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
}

/* Benefits Section */
.benefits {
  padding: 5rem 0;
}

.benefits .hero-buttons{
   justify-content: center;
     margin-top: 2.375rem;
}

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

.benefit-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
}

.benefit-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.benefit-icon.primary {
  background-color: rgba(220, 38, 38, 0.1);
}

.benefit-icon.secondary {
  background-color: rgba(0, 0, 139, 0.1);
}

.benefit-icon svg {
  width: 2.5rem;
  height: 2.5rem;
}

.benefit-icon.primary svg {
  color: var(--primary);
}

.benefit-icon.secondary svg {
  color: var(--secondary);
}

.benefit-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.benefit-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
}

.stats {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, rgba(0, 0, 139, 0.05) 100%);
  border-radius: 1rem;
  padding: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--muted-foreground);
}

/* About Section */
.about {
  padding: 5rem 0;
}

.about .hero-buttons{
  width: 100%;
  margin-top: 4.375rem;
}

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

.about-image {
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.about-image{
  object-fit: cover;
}

.about-image-wrapper{
  height: 100%;
}

.about-text {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.about-feature {
  display: flex;
  gap: 1rem;
}

.about-feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature-icon.primary {
  background-color: rgba(220, 38, 38, 0.1);
}

.about-feature-icon.secondary {
  background-color: rgba(0, 0, 139, 0.1);
}

.about-feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.about-feature-icon.primary svg {
  color: var(--primary);
}

.about-feature-icon.secondary svg {
  color: var(--secondary);
}

.about-feature-title {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.about-feature-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* FAQ Section */
.faq {
  padding: 5rem 0;
  background-color: rgba(0, 0, 0, 0.02);
}

.faq-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}

.faq-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-question {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}

.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--muted-foreground);
}

.faq-answer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.faq-answer p {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* SEO Section */
.seo-section {
  padding: 5rem 0;
}

.seo-card {
  max-width: 56rem;
  margin: 0 auto;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
}

.seo-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 2rem;
  text-align: center;
}

.seo-content p {
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.seo-content strong {
  color: var(--foreground);
  font-weight: 600;
}

.seo-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 2rem 0 1rem;
}

.seo-content ul {
  list-style: none;
  margin: 1rem 0 1.5rem 1.5rem;
}

.seo-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
}

.seo-content ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.seo-cta {
  background-color: rgba(220, 38, 38, 0.05);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
}

.seo-cta p {
  text-align: center;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background-color: rgba(0, 0, 0, 0.02);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-title,
.contact-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.contact-info {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon.primary {
  background-color: rgba(220, 38, 38, 0.1);
}

.contact-icon.secondary {
  background-color: rgba(0, 0, 139, 0.1);
}

.contact-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.contact-icon.primary svg {
  color: var(--primary);
}

.contact-icon.secondary svg {
  color: var(--secondary);
}

.contact-item h4 {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: var(--muted-foreground);
}

.contact-form-wrapper {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--background);
  color: var(--foreground);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
}

/* Footer */
.footer {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-section h4 {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .services-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

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

  .about-features {
    grid-template-columns: 1fr;
  }

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

  .hero-badge {
    left: 1rem;
    bottom: 1rem;
  }
}
