/* 
* Main stylesheet for Tyranovelisqu - Financial Audit Services
* Created for the landing page prototype
*/

/* === VARIABLES === */
:root {
  /* Color palette */
  --color-primary: #1E1F26; /* deep anthracite */
  --color-accent: #FFD447; /* bright amber */
  --color-secondary: #5A8F7B; /* muted emerald */
  --color-bg-light: #F4F6F8; 
  --color-bg-white: #FFFFFF;
  --color-text-heading: #2D2D2D;
  --color-text-body: #4F4F4F;
  
  /* Typography */
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Playfair Display', serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  /* Border radius */
  --border-radius: 8px;
  --border-radius-lg: 16px;
}

/* === RESET & BASE === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text-body);
  background-color: var(--color-bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  color: var(--color-text-heading);
  margin-bottom: var(--space-sm);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  position: relative;
}



h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: var(--space-sm);
}

ul {
  list-style: none;
}

button, .btn {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

button:hover, .btn:hover {
  background-color: var(--color-primary);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

section {
  padding: var(--space-lg) 0;
  scroll-margin-top: 80px; /* Отступ для якорных ссылок */
}

/* === HEADER === */
header {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  padding: var(--space-sm) 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-bg-white);
}

.logo span {
  color: var(--color-accent);
}

nav ul {
  display: flex;
  gap: var(--space-md);
}

nav a {
  color: var(--color-bg-white);
  font-weight: 500;
  position: relative;
}

nav a:hover {
  color: var(--color-accent);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.lang-switch a {
  color: var(--color-bg-white);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.lang-switch a.active,
.lang-switch a:hover {
  opacity: 1;
  color: var(--color-accent);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-bg-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* === HERO SECTION === */
.hero {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px; /* Account for fixed header */
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  background-color: var(--color-accent);
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 100% 0);
  opacity: 0.1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: var(--space-md);
  color: var(--color-bg-white);
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.2s forwards;
  opacity: 0;
}

.hero .btn {
  animation: fadeInUp 1s ease-out 0.4s forwards;
  opacity: 0;
  font-size: 1.1rem;
}

/* === ABOUT SECTION === */
.about {
  background-color: var(--color-bg-white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
  color: var(--color-primary);
}

/* === SERVICES SECTION === */
.services {
  background-color: var(--color-bg-light);
}

.services-title {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.service-card {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.service-card-content {
  padding: 0 var(--space-md) var(--space-md);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  margin-bottom: var(--space-sm);
}

/* === BENEFITS SECTION === */
.benefits {
  background-color: var(--color-bg-white);
}

.benefits-title {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.benefit-card {
  text-align: center;
  padding: var(--space-md);
  border-radius: var(--border-radius);
  transition: transform 0.3s ease;
  position: relative;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--color-secondary);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.benefit-card:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  font-size: 2.5rem;
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

/* === PROCESS SECTION === */
.process {
  background-color: var(--color-bg-light);
}

.process-title {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-secondary);
  opacity: 0.3;
}

.process-step {
  flex: 0 0 20%;
  text-align: center;
  padding: 0 var(--space-sm);
  position: relative;
  z-index: 1;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--color-bg-white);
  color: var(--color-primary);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto var(--space-sm);
  border: 2px solid var(--color-secondary);
  position: relative;
}

.step-number::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px dashed var(--color-accent);
}

/* === TESTIMONIALS SECTION === */
.testimonials {
  background-color: var(--color-bg-white);
}

.testimonials-title {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.testimonial-card {
  background-color: var(--color-bg-light);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 4rem;
  font-family: var(--font-secondary);
  color: var(--color-accent);
  opacity: 0.2;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-primary);
}

.testimonial-company {
  font-size: 0.9rem;
  color: var(--color-secondary);
}

/* === CONTACT FORM SECTION === */
.contact {
  background-color: var(--color-bg-light);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 70%;
  width: 30%;
  background-color: var(--color-primary);
  opacity: 0.05;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.contact-title {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
  opacity: 0.05;
  z-index: -1;
}

.form-group {
  margin-bottom: var(--space-md);
}

label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  color: var(--color-primary);
}

input, select, textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid rgba(30, 31, 38, 0.1);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
}

.checkbox-group input {
  width: auto;
  margin-right: var(--space-xs);
  margin-top: 5px;
}

.submit-btn {
  width: 100%;
  padding: var(--space-sm) 0;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
  color: var(--color-primary);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* === FOOTER === */
footer {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  padding: var(--space-lg) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.footer-about .logo {
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.footer-about p {
  opacity: 0.8;
}

.footer-links h4 {
  color: var(--color-bg-white);
  margin-bottom: var(--space-md);
  font-family: var(--font-primary);
  position: relative;
}

.footer-links h4::after {
  content: '';
  display: block;
  height: 3px;
  width: 40px;
  background-color: var(--color-accent);
  margin-top: var(--space-xs);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-links a {
  color: var(--color-bg-white);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-accent);
  padding-left: var(--space-xs);
}

.footer-contact p {
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.footer-contact i {
  color: var(--color-accent);
}

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* === POLICY PAGES === */
.policy-container {
  max-width: 800px;
  margin: 120px auto var(--space-lg);
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(90, 143, 123, 0.2);
}

.policy-header {
  text-align: center;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(90, 143, 123, 0.2);
}

.policy-content h3 {
  color: var(--color-secondary);
  margin-top: var(--space-md);
}

.policy-content p, 
.policy-content ul {
  margin-bottom: var(--space-sm);
}

.policy-content ul {
  list-style: disc;
  padding-left: var(--space-md);
}

.policy-content ul li {
  margin-bottom: var(--space-xs);
}

.back-to-home {
  display: inline-block;
  margin-top: var(--space-md);
  color: var(--color-secondary);
  font-weight: 600;
}

/* === COOKIE POPUP === */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 400px;
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
}

.cookie-popup.show {
  display: block;
  animation: slideUp 0.5s forwards;
}

.cookie-popup p {
  margin-bottom: var(--space-sm);
}

.cookie-buttons {
  display: flex;
  justify-content: space-between;
}

.cookie-buttons a {
  font-size: 0.9rem;
  color: var(--color-secondary);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Reveal animations for sections */
/* Removed reveal animations as they require JavaScript to work properly */

/* === RESPONSIVE STYLES === */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .services-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-step {
    flex: 0 0 33.333%;
    margin-bottom: var(--space-md);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

@media (max-width: 768px) {
  section {
    padding: var(--space-md) 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-primary);
    flex-direction: column;
    padding: var(--space-md);
    text-align: center;
  }
  
  nav ul.show {
    display: flex;
  }
  
  nav a::after {
    display: none;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1;
    margin-bottom: var(--space-md);
  }
  
  .services-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  
  .process-steps::before {
    display: none;
  }
  
  .process-step {
    flex: 0 0 100%;
    margin-bottom: var(--space-md);
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-links h4::after,
  h2::after {
    margin-left: auto;
    margin-right: auto;
  }
  
  .footer-contact p {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .form-container {
    padding: var(--space-md);
  }
}
