/* Базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
}

/* Навигация */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-left img {
  height: 36px;
  width: auto;
}

.nav-left span {
  font-size: 1.4rem;
  font-weight: bold;
  color: #333;
}

.nav-center {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.nav-center a {
  text-decoration: none;
  font-weight: bold;
  color: #333;
  position: relative;
}

.nav-center a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -4px;
  background: #000;
  transition: width 0.3s;
}

.nav-center a:hover::after {
  width: 100%;
}

/* Хедер */
.main-header {
  background-image: url('../images/background.jpg');
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  color: white;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

header .headline {
  position: relative;
  z-index: 1;
}

header .headline h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

header .headline p {
  font-size: 1.3rem;
}

/* Блок преимуществ */
.advantages {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  padding: 6rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.advantage-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}

.advantage-block.reverse {
  flex-direction: row-reverse;
}

.advantage-block img {
  width: 48%;
  height: 400px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.text-content {
  width: 48%;
}

.text-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #222;
}

.text-content p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #444;
}

/* Футер */
.compact-footer {
  background: #111;
  color: #ccc;
  padding: 1.2rem 2rem;
  font-size: 0.9rem;
  border-top: 1px solid #222;
}

.footer-inner {
  max-width: 1300px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-center {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-center a,
.footer-right a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-center a:hover,
.footer-right a:hover {
  color: #fff;
}

.footer-left {
  font-weight: bold;
  color: #888;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}



/* Адаптив */
@media (max-width: 992px) {
  .advantage-block,
  .advantage-block.reverse {
    flex-direction: column;
    text-align: center;
  }

  .advantage-block img,
  .text-content {
    width: 100%;
  }

  nav {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .nav-center {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
  }

  .nav-left {
    justify-content: center;
    margin-bottom: 1rem;
  }
}

/* Общие стили для шапки страницы */
.page-header {
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.page-header h1 {
  position: relative;
  z-index: 1;
  font-size: 2.5rem;
}

.about-header {
  background: url('../images/about.jpg') no-repeat center;
}

.whyus-header {
  background: url('../images/business.jpg') no-repeat center;
}

.documents-header {
  background: url('../images/documents.jpg') no-repeat center;
}

.contact-header {
  background: url('../images/contact.jpg') no-repeat center;
}

.products-header {
  background: url('../images/productb.jpg') no-repeat center;
}

/* Секция текста для всех внутренних страниц */
.about-section {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #222;
}

.about-text p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #444;
}

.about-text ul {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #444;
  padding-left: 1.5rem;
}

.about-text ul li {
  margin-bottom: 0.5rem;
}

/* Карточки продуктов */
.product-cards {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.product-card {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.product-card.reverse {
  flex-direction: row-reverse;
}

.product-card img {
  width: 50%;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-info {
  width: 50%;
}

.product-info h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #222;
}

.product-info p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
}

/* Адаптивность */
@media (max-width: 992px) {
  .product-card,
  .product-card.reverse {
    flex-direction: column;
    text-align: center;
  }

  .product-card img,
  .product-info {
    width: 100%;
  }
}

/* Button in header */

.hero-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 1.6rem;
  background-color: #ff9900;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.hero-button:hover {
  background-color: #e68a00;
}

/* Call to Action */
.cta {
  background-color: #f7f7f7;
  text-align: center;
  padding: 4rem 2rem;
  margin-top: 4rem;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #222;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #444;
}

.cta-button {
  background-color: #0077cc;
  color: white;
  padding: 0.7rem 1.6rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #005fa3;
}

/* Why Us Section */
.why-us-section {
  background-color: #f9f9f9;
  padding: 4rem 2rem;
}

.why-columns {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.why-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.why-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #222;
}

.why-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

/* Products benefits */

.product-advantages {
  background: linear-gradient(to bottom, #f9f9f9 0%, #ffffff 100%);
  padding: 5rem 2rem 6rem;
  margin-top: 4rem;
  border-top: 1px solid #eee;
}

.benefits-wrapper {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.product-advantages h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #222;
}

.benefits-subtitle {
  font-size: 1.2rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.product-adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.adv-item {
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  transition: transform 0.3s ease;
}

.adv-item:hover {
  transform: translateY(-5px);
}

.adv-item h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #0077cc;
}

.adv-item p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.6;
}

.benefits-cta {
  margin-top: 3rem;
}

.benefits-cta .cta-button {
  background-color: #0077cc;
  color: white;
  padding: 0.75rem 1.8rem;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.benefits-cta .cta-button:hover {
  background-color: #005fa3;
}

/*documents section */

.docs-section {
  padding: 4rem 2rem;
  background-color: #f9f9f9;
  text-align: center;
}

.docs-intro p {
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.15rem;
  color: #444;
  line-height: 1.7;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 4rem;
}

.doc-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.doc-card:hover {
  transform: translateY(-5px);
}

.doc-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #0077cc;
}

.doc-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

.docs-note {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #333;
}

.docs-note p {
  margin-bottom: 1.5rem;
}

.docs-note .cta-button {
  background-color: #0077cc;
  color: white;
  padding: 0.7rem 1.6rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.docs-note .cta-button:hover {
  background-color: #005fa3;
}

/* contact section */

.contact-section {
  padding: 4rem 2rem;
  background-color: #f9f9f9;
  text-align: center;
}

.contact-grid {
  max-width: 1000px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 8rem;
}

.contact-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.contact-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #0077cc;
}

.contact-card p {
  font-size: 1.05rem;
  color: #444;
  word-break: break-word;
}

.contact-card a {
  color: #0077cc;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}
