body {
  font-family: 'Inter';
  line-height: 1.5;
}

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

section.header {
    padding-top: 30px;
    padding-bottom: 30px;
}

/* Header styles */
.header {
  padding: 16px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--fg-main);
  gap: 8px;
  font-weight: 600;
  padding-top: 10px;
  font-size: 20px;
}

.logo > img {
    width: 32px;
    height: 32px;
    margin-top: -12px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--fg-main);
  font-weight: 600;
  font-size: 15px;
}

.menu-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-button svg {
  width: 24px;
  height: 24px;
}

/* Hero section */
.hero {
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-right: 0;
  max-width: calc((100% - 1200px) / 2 + 1200px)
}

.hero .left-logo {    
    z-index: -999;
    position: absolute;
    top: 20%;
    height: 100%;
    max-width: 80%;
    left: 0%;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 57.6px;
  margin-bottom: 24px;
  font-weight: 800;
}

.hero-content p {
    font-size: 24px;
    font-weight: 500;
}

.hero-image {
  flex: 1;
  position: relative;
  margin-right: 10%;
}

.mockup {
  width: 130%;
  max-width: none;
}
.search-icon {
    position: absolute;
    width: 28.89%;
    bottom: 67%;
    right: 51.59%;
}
.time-icon {
    position: absolute;
    width: 19.21%;
    right: -16.05%;
    bottom: 49.77%;
}
.security-icon {
    position: absolute;
    width: 16.64%;
    right: 62.61%;
    bottom: 20.269%;
}

/* Try Free section */
.try-free {
  padding: 48px 0;
  text-align: center;
}

.try-free h2 {
  margin-bottom: 32px;
  font-size: 43.2px;
  font-weight: 800;
}

.search-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 16px;
}

.search-form input {
  flex: 1;
  padding: 12px 24px;
  border: 1px solid #ddd;
  border-radius: 9999px;
  font-size: 16px;
}

.search-form button {
  padding: 12px 32px;
  background: var(--bg-btn);
  color: #fff;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 16px;
}

/* About section */
.about {
  padding: 64px 0;
}

.about h2 {
  text-align: center;
  margin-bottom: 16px;
  font-size: 43.2px;
  font-weight: 600;
}

.about-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px;
  color: #666;
  font-size: 21.6px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(500px, 100%), 1fr));
  gap: 32px;
}

.feature {
  text-align: center;
  padding: 24px;
  position: relative;
}

.feature::before {
  content: counter(feature);
  counter-increment: feature;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 140px;
  color: rgba(0, 0, 0, 0.05);
  z-index: 0;
}
.add .feature:before {
  color: rgba(255, 255, 255, 0.05);
}

.feature img {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.feature h3 {
  margin-bottom: 16px;
  font-size: 24px;
  position: relative;
  z-index: 1;
}

.feature p {
  position: relative;
  z-index: 1;
  font-size: 16px;
}

/* Prices section */
.prices {
  padding: 64px 0;
}

.prices h2 {
  text-align: center;
  font-size: 43.2px;
  font-weight: 600;
}

.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.price-card {
  padding: 50px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 60px;
  box-shadow: 0px 243px 143px 0px rgba(0, 0, 0, 0.00), 0px 122px 120px 0px rgba(0, 0, 0, 0.01), 0px 6px 105px 0px rgba(0, 0, 0, 0.05), 0px 4px 78px 0px rgba(0, 0, 0, 0.09), 0px 1.7px 43px 0px rgba(0, 0, 0, 0.10);
}

.price-card h3 {
  margin-bottom: 24px;
  font-size: 28.8px;
}

.price-card ul {
  list-style: none;
  margin-bottom: 48px;
  flex-grow: 1;
}

.price-card li {
  margin-bottom: 12px;
  font-size: 19.2px;
}

.price-button {
  padding: 12px 32px;
  background: var(--bg-btn);
  color: #fff;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 19.2px;
  width: 100%;
}

/* FAQ section */
.faq {
  padding: 64px 0;
}

.faq h2 {
  text-align: center;
  margin-bottom: 48px;
  font-size: 43.2px;
  font-weight: 600;
}

.faq-items {
  max-width: 800px;
  margin: 0 auto;
}

details {
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
}

summary {
  font-weight: 500;
  list-style: none;
  position: relative;
  padding-right: 24px;
  font-size: 19.2px;
}

summary:after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

details[open] {
    background: #5C6A72;
}
details[open] summary:after {
  content: '-';
}

details p {
  padding: 8px 0;
  font-size: 19.2px;
}

/* Footer */
footer {
  padding: 24px 0;
  background: #000;
  text-align: center;
  color: #fff;
  font-size: 19.2px;
}

/* Counter reset for features */
.features {
  counter-reset: feature;
}

/* Responsive design */
@media (max-width: 768px) {
  .logo > img {
      width: 28px;
      height: 28px;
      margin-top: -10px;
  }
  .logo {
      padding-top: 6px;
  }
  .hero {
      padding-bottom: 0;
      margin-bottom: -8%;
  }
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .nav {
    position: relative;
  }

  .menu-button {
    display: block;
    z-index: 20;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 10;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .try-free h2 {
      font-size: 26px;
  }
  
  .about h2,
  .prices h2,
  .faq h2 {
    font-size: 32px;
  }

  .about-description,
  .price-card li,
  .price-button,
  summary,
  details p,
  footer {
    font-size: 16px;
  }

  .search-icon {
      right: 65%;
  }
  .time-icon {
      right: 2%;
  }
  .security-icon {
      right: 74%;
  }
  .search-form {
    flex-direction: column;
    align-items: stretch;
  }
  .search-form button {
      width: auto;
      margin: auto;
  }
  .hero-content .left-logo {
      top: -20%;
  }

  .hero-image {
      margin-right: -20px;
      margin-top: 20%;
      z-index: -1;
  }

  .mockup {
      width: 100%;
  }

  .price-cards {
      row-gap: 48px;
  }
  
  .price-card {
      box-shadow: 0px 243px 143px 0px rgba(0, 0, 0, 0.00), 0px 122px 120px 0px rgba(0, 0, 0, 0.01), 0px 6px 105px 0px rgba(0, 0, 0, 0.05), 0px 4px 78px 0px rgba(0, 0, 0, 0.09), 0px 1.7px 43px 0px rgba(0, 0, 0, 0.10);
  }
}

.site-footer {
  padding: 48px 0;
  background-color: #000;
  color: #fff;
  font-size: 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: left;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-column ul li a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-column ul li a:hover {
  opacity: 0.8;
}

.footer-copyright {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  padding-top: 25px;
}

/* Адаптация под мобильные */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-column {
    margin-bottom: 24px;
  }

  .footer-copyright {
    text-align: center;
  }
}
/* Добавьте эти стили в app/static/css/styles.css */
.contact-form {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 16px;
  font-weight: 600;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #50B7D6;
  outline: none;
}

.contact-form button {
    padding: 12px 32px;
    background: var(--bg-btn);
    color: #fff;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 19.2px;
    width: 20%;
    align-self: center;
}
.contact-form input,
.contact-form textarea {
  padding: 12px 24px;
  border: 1px solid #ddd;
  border-radius: 22px;
  font-size: 16px;
  width: 100%;
  resize: none;
}
