/* ===================================
   Paramus Digital Solutions - CSS
   Адаптивный сайт на чистом HTML/CSS
   =================================== */

/* === ИМПОРТ ШРИФТОВ === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* === СБРОС И БАЗОВЫЕ СТИЛИ === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Цветовая палитра */
  --color-white: #FFFFFF;
  --color-bg-light: #EEF2F7;
  --color-text-dark: #2C3E50;
  --color-text-gray: #7F8C8D;
  --color-green: #2ECC71;
  --color-green-hover: #27AE60;
  --color-shadow: rgba(0, 0, 0, 0.1);
  
  /* Типографика */
  --font-family: 'Poppins', sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  
  /* Размеры */
  --max-width-container: 1200px;
  --max-width-text: 700px;
  --border-radius: 12px;
  --spacing-section: 80px;
  --spacing-element: 40px;
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-light);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-white);
  overflow-x: hidden;
}

/* === КОНТЕЙНЕРЫ === */
.container {
  max-width: var(--max-width-container);
  margin: 0 auto;
  padding: 0 20px;
}

.text-container {
  max-width: var(--max-width-text);
  margin: 0 auto;
}

section {
  padding: var(--spacing-section) 0;
}

/* === ТИПОГРАФИКА === */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--color-text-dark);
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.4rem;
}

p {
  font-weight: var(--font-weight-regular);
  margin-bottom: 15px;
  max-width: var(--max-width-text);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* === HEADER === */
header {
  background-color: var(--color-white);
  box-shadow: 0 2px 10px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-green);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav a {
  font-weight: var(--font-weight-regular);
  color: var(--color-text-dark);
  transition: color 0.3s ease;
}

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

/* Мобильное меню */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background-color: var(--color-text-dark);
  transition: all 0.3s ease;
}

/* === HERO СЕКЦИЯ === */
.hero {
  background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-white) 100%);
  padding: 120px 0 100px;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  color: var(--color-text-dark);
}

.hero .tagline {
  font-size: 1.3rem;
  color: var(--color-text-gray);
  margin-bottom: 40px;
  font-weight: var(--font-weight-regular);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === КНОПКИ === */
.btn {
  display: inline-block;
  padding: 14px 35px;
  font-weight: var(--font-weight-regular);
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-green);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-green);
  border: 2px solid var(--color-green);
}

.btn-secondary:hover {
  background-color: var(--color-green);
  color: var(--color-white);
}

/* === КАРТОЧКИ === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.card {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  padding: 35px;
  box-shadow: 0 5px 20px var(--color-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.card p {
  color: var(--color-text-gray);
  margin: 0 auto;
}

/* === СЕКЦИИ === */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  margin-bottom: 10px;
}

.section-title p {
  color: var(--color-text-gray);
  margin: 0 auto;
}

.section-light {
  background-color: var(--color-bg-light);
}

/* === О КОМПАНИИ СЕКЦИЯ === */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 40px;
}

.about-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px var(--color-shadow);
}

/* === СТАТИСТИКА === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 50px;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--color-green);
  margin-bottom: 10px;
}

.stat-item p {
  color: var(--color-text-gray);
  margin: 0 auto;
}

/* === CTA СЕКЦИЯ === */
.cta-section {
  background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-hover) 100%);
  color: var(--color-white);
  text-align: center;
  padding: 80px 20px;
  border-radius: var(--border-radius);
  margin: 60px auto;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.cta-section .btn {
  background-color: var(--color-white);
  color: var(--color-green);
}

.cta-section .btn:hover {
  background-color: var(--color-bg-light);
  transform: translateY(-3px);
}

/* === БЛОГ === */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.blog-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 20px var(--color-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.blog-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.blog-content {
  padding: 30px;
}

.blog-content h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.blog-content p {
  color: var(--color-text-gray);
  margin-bottom: 20px;
}

.blog-meta {
  font-size: 0.9rem;
  color: var(--color-text-gray);
  margin-bottom: 15px;
}

/* === СТАТЬЯ БЛОГА === */
.article-hero {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 40px;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content h1 {
  margin-bottom: 20px;
}

.article-content p {
  margin-bottom: 25px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-date {
  color: var(--color-text-gray);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

/* === ФОРМА КОНТАКТОВ === */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 50px;
}

.contact-form {
  background-color: var(--color-bg-light);
  padding: 40px;
  border-radius: var(--border-radius);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: var(--font-weight-regular);
  color: var(--color-text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

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

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

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-item-icon {
  font-size: 1.5rem;
  color: var(--color-green);
  margin-top: 5px;
}

.contact-item-content h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-item-content p {
  color: var(--color-text-gray);
  margin: 0;
}

.map-container {
  margin-top: 50px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 20px var(--color-shadow);
}

/* === FAQ === */
.faq-container {
  max-width: 800px;
  margin: 50px auto 0;
}

.faq-item {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 3px 10px var(--color-shadow);
}

.faq-question {
  padding: 25px 30px;
  background-color: var(--color-bg-light);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #e3e9f0;
}

.faq-question h3 {
  font-size: 1.2rem;
  margin: 0;
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--color-green);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

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

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

.faq-answer p {
  margin: 0;
  color: var(--color-text-gray);
}

/* === FOOTER === */
footer {
  background-color: var(--color-text-dark);
  color: var(--color-white);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: var(--color-white);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
  display: block;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--color-green);
}

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

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* === COOKIE БАННЕР === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-text-dark);
  color: var(--color-white);
  padding: 20px;
  box-shadow: 0 -5px 20px var(--color-shadow);
  z-index: 2000;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  max-width: var(--max-width-container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-content p {
  margin: 0;
  flex: 1;
  min-width: 250px;
}

.cookie-content a {
  color: var(--color-green);
  text-decoration: underline;
}

.cookie-content .btn {
  flex-shrink: 0;
}

/* === АДАПТИВНОСТЬ === */

/* Планшет (2 колонки) */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.9rem;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Мобильные устройства (1 колонка) */
@media (max-width: 768px) {
  nav ul {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--color-white);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
    gap: 0;
    box-shadow: 0 5px 20px var(--color-shadow);
    transition: left 0.3s ease;
  }
  
  nav ul.active {
    left: 0;
  }
  
  nav ul li {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-bg-light);
  }
  
  .hamburger {
    display: flex;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .hero {
    padding: 80px 0 60px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero .tagline {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  section {
    padding: 50px 0;
  }
  
  .cta-section {
    padding: 50px 20px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .article-hero {
    height: 250px;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cookie-content .btn {
    width: 100%;
  }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .card {
    padding: 25px;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
  
  .btn {
    padding: 12px 25px;
    font-size: 0.95rem;
  }
}
