/* 
 * AIpornGeneratorRU.pw - CSS Styles
 * Тема: Основана на цветах российского флага
 * Последнее обновление: 21 августа 2025 г.
 */

:root {
  /* Цвета российского флага */
  --white: #ffffff;
  --blue: #0039A6;
  --red: #D52B1E;
  --dark: #1A1A1A;
  --grey-light: #F0F0F0;
  --grey: #CCCCCC;
  --grey-dark: #555555;
  --gradient-blue: linear-gradient(135deg, var(--blue), #002c80);
  --gradient-red: linear-gradient(135deg, var(--red), #b0241a);
  --shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 10px 25px rgba(0, 0, 0, 0.18);
  --border-radius: 8px;
  --transition: all 0.25s ease-in-out;
}

/* Reset и базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark);
  line-height: 1.5;
  background-color: var(--white);
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--blue), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--blue);
}

h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  margin: 15px auto 0;
  background: linear-gradient(to right, var(--blue), var(--red));
  border-radius: var(--border-radius);
}

h3 {
  font-size: 1.35rem;
  color: var(--dark);
  margin-bottom: 0.8rem;
}

h4 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.2rem;
  color: var(--grey-dark);
  font-size: 1rem;
}

a {
  text-decoration: none;
  color: var(--blue);
  transition: var(--transition);
}

section {
  padding: 80px 0;
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-weight: 600;
  border-radius: var(--border-radius);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  margin: 10px 8px 10px 0;
}

.primary-btn {
  background: var(--gradient-blue);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow);
}

.primary-btn:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-3px);
  background-position: right center;
}

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

.outline-btn:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1rem;
}

/* Хедер и навигация */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  padding: 18px 0;
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 700;
}

.logo svg {
  margin-right: 12px;
}

.logo span {
  background: linear-gradient(to right, var(--blue), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-menu {
  display: flex;
  list-style: none;
}

.main-menu li {
  margin-left: 30px;
}

.main-menu a {
  color: var(--dark);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
}

.main-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 3px;
  background: linear-gradient(to right, var(--blue), var(--red));
  transition: var(--transition);
  border-radius: 2px;
}

.main-menu a:hover {
  color: var(--blue);
}

.main-menu a:hover::after {
  width: 100%;
}

.menu-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1010;
}

.menu-icon span {
  width: 30px;
  height: 3px;
  background-color: var(--blue);
  margin-bottom: 5px;
  border-radius: 3px;
  transition: var(--transition);
}

.menu-icon.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-icon.active span:nth-child(2) {
  opacity: 0;
}

.menu-icon.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Главный раздел */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(170deg, rgba(0, 57, 166, 0.03), rgba(213, 43, 30, 0.03));
  position: relative;
  overflow: hidden;
}

.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
  min-width: 300px;
  max-width: 650px;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 25px;
  color: var(--grey-dark);
  opacity: 0.9;
}

.age-warning {
  display: flex;
  align-items: center;
  background-color: rgba(213, 43, 30, 0.1);
  border-radius: var(--border-radius);
  padding: 12px 18px;
  margin-bottom: 25px;
  max-width: fit-content;
}

.age-warning svg {
  margin-right: 10px;
}

.age-warning span {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--red);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
}

.hero-graphic {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 300px;
  max-width: 500px;
  margin: 20px auto 0;
}

/* Возможности */
.features {
  background-color: var(--grey-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-box {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 35px 25px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border-top: 5px solid transparent;
}

.feature-box:nth-child(odd) {
  border-top-color: var(--blue);
}

.feature-box:nth-child(even) {
  border-top-color: var(--red);
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-strong);
}

.feature-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

/* Как это работает */
.how-it-works {
  background-color: var(--white);
  position: relative;
}

.steps-container {
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  margin-bottom: 50px;
  transition: var(--transition);
  padding-left: 10px;
}

.step:last-child {
  margin-bottom: 0;
}

.step:hover {
  transform: translateX(10px);
}

.step-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 50%;
  background: var(--gradient-blue);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-right: 25px;
  box-shadow: var(--shadow);
  position: relative;
}

.step:nth-child(2) .step-icon {
  background: var(--gradient-red);
}

.step:nth-child(3) .step-icon {
  background: linear-gradient(135deg, var(--blue) 0%, var(--red) 100%);
}

.step-content {
  padding-top: 10px;
}

/* Отзывы */
.testimonials {
  background: var(--gradient-blue);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  top: -150px;
  right: -150px;
}

.testimonials::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  bottom: -100px;
  left: -100px;
}

.testimonials h2 {
  color: var(--white);
}

.testimonials h2::after {
  background: var(--white);
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 30px;
  border-left: 4px solid var(--red);
  transition: var(--transition);
  backdrop-filter: blur(5px);
  position: relative;
  z-index: 10;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.15);
}

.testimonial-text {
  margin-bottom: 20px;
}

.testimonial-text p {
  color: var(--white);
  font-style: italic;
  opacity: 0.9;
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  opacity: 0.8;
}

/* FAQ */
.faq {
  background-color: var(--grey-light);
}

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

.faq-item {
  background: var(--white);
  border-radius: var(--border-radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  background: rgba(0, 57, 166, 0.03);
}

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

.faq-toggle {
  font-size: 1.5rem;
  color: var(--blue);
  transition: var(--transition);
  font-weight: bold;
}

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

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

.faq-answer p {
  padding-bottom: 20px;
  opacity: 0.8;
}

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

/* CTA */
.cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 57, 166, 0.95), rgba(213, 43, 30, 0.95)), url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMzAgMzBtLTI1IDBhMjUgMjUgMCAxIDEgNTAgMGEyNSAyNSAwIDEgMSAtNTAgMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmZmZmMTAiIHN0cm9rZS13aWR0aD0iMiIvPjwvc3ZnPg==");
  background-position: center;
  color: var(--white);
  padding: 100px 0;
}

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

.cta h2::after {
  background: var(--white);
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 40px;
}

.cta .primary-btn {
  background: var(--white);
  color: var(--blue);
  border: none;
  min-width: 250px;
}

.cta .primary-btn:hover {
  background: var(--grey-light);
  color: var(--blue);
  transform: scale(1.05);
}

.disclaimer {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 20px;
}

/* Футер */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 70px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.footer-logo {
  max-width: 380px;
  margin-bottom: 30px;
}

.footer-logo svg {
  margin-bottom: 15px;
}

.footer-logo h3 {
  color: var(--white);
  margin-bottom: 15px;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-column h4 {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 40px;
  background: linear-gradient(to right, var(--blue), var(--red));
}

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

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

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--white);
  padding-left: 5px;
}

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

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.keywords {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

/* Адаптивность */
@media screen and (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-content {
    flex: 100%;
    max-width: 100%;
  }
  
  .hero-graphic {
    margin-top: 50px;
    max-width: 100%;
  }
}

@media screen and (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  .menu-icon {
    display: flex;
  }
  
  .main-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    flex-direction: column;
    background-color: var(--white);
    padding: 100px 40px 40px;
    transition: all 0.4s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  
  .main-menu.active {
    right: 0;
  }
  
  .main-menu li {
    margin: 15px 0;
  }
  
  .testimonials-slider {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .button-group .btn {
    width: 100%;
    margin: 8px 0;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero {
    padding-top: 130px;
  }
  
  .step {
    flex-direction: column;
  }
  
  .step-icon {
    margin-bottom: 15px;
    margin-right: 0;
  }
  
  .feature-box {
    padding: 25px 20px;
  }
}
