/* Main Color Palette */
:root {
  --primary: #1CA9C9;    /* Lazurno-blakytnyj */
  --secondary: #FFD93D;  /* Lymonno-zhovtyj */
  --accent: #5A189A;     /* Nasychenyj fioletovyj */
  --background: #F8F9FA; /* Svitlo-siryj */
  --text: #212529;       /* Temno-synij */
  --white: #FFFFFF;
  --light-gray: #E9ECEF;
  --medium-gray: #CED4DA;
  --dark-gray: #6C757D;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
}

section[id] {
  scroll-margin-top: 40px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn:hover {
  background-color: var(--accent);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text);
}

.btn-secondary:hover {
  background-color: #e6c235;
  color: var(--text);
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.logo a {
  color: var(--primary);
}

/* Hamburger Menu (CSS only) */
.menu-toggle {
  display: none;
}

.menu-btn {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
}

.menu-btn span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--primary);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.menu-btn span:nth-child(1) {
  top: 0px;
}

.menu-btn span:nth-child(2) {
  top: 10px;
}

.menu-btn span:nth-child(3) {
  top: 20px;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 1.5rem;
}

.nav-menu a {
  color: var(--text);
  font-weight: 500;
}

.nav-menu a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  margin-top: 60px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary);
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--secondary);
  margin: 1rem auto 0;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

/* Services Section */
.service-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.service-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.service-card-content {
  padding: 1.5rem;
}

.service-card h3 {
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Benefits Section */
.benefits {
  background-color: var(--light-gray);
}

.benefit-item {
  text-align: center;
  padding: 2rem;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.benefit-icon {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonial {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.testimonial-content {
  position: relative;
}

.testimonial-content::before {
  content: '"';
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
}

.testimonial-author {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
}

.testimonial-author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 700;
}

.testimonial-position {
  color: var(--dark-gray);
  font-size: 0.9rem;
}

/* Contact Form */
.form-section {
  background-color: var(--light-gray);
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--medium-gray);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6'%3E%3Cpath d='M0 0h12L6 6z' fill='%236c757d'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.form-check-input {
  margin-top: 0.3rem;
  margin-right: 0.5rem;
}

.form-check-label {
  font-size: 0.9rem;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--medium-gray);
  border-radius: 4px;
}

.faq-question {
  position: relative;
  padding: 1rem;
  cursor: pointer;
  font-weight: 500;
  display: block
}

.faq-checkbox {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.faq-toggle {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 20px;
  height: 20px;
}

.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  background-color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-toggle::before {
  width: 20px;
  height: 2px;
  top: 9px;
}

.faq-toggle::after {
  width: 2px;
  height: 20px;
  left: 9px;
  transform-origin: center;
}

.faq-checkbox:checked ~ .faq-question .faq-toggle::after {
  transform: rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: var(--light-gray);
}

.faq-checkbox:checked ~ .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 1rem;
}

/* Footer */
footer {
  background-color: var(--text);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-logo {
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--medium-gray);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.footer-contact i {
  margin-right: 0.8rem;
  color: var(--primary);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.9rem;
  color: var(--medium-gray);
}

/* Thank You Page */
.thank-you-container {
  text-align: center;
  max-width: 700px;
  margin: 8rem auto 5rem;
  padding: 3rem;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.thank-you-container h1 {
  color: var(--accent);
  margin-bottom: 1.5rem;
}

/* Policy Pages */
.policy-container {
  max-width: 800px;
  margin: 8rem auto 5rem;
  padding: 3rem;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.policy-container h1 {
  color: var(--primary);
  margin-bottom: 2rem;
}

.policy-container h2 {
  color: var(--accent);
  margin: 2rem 0 1rem;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 400px;
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  z-index: 9999;
  display: none;
}

.cookie-popup.active {
  display: block;
}

.cookie-popup p {
  margin-bottom: 1.5rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .menu-btn {
    display: block;
    z-index: 1002;
  }
  
  .menu-toggle:checked ~ .menu-btn span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
  }
  
  .menu-toggle:checked ~ .menu-btn span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle:checked ~ .menu-btn span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    padding: 80px 0 0 0;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1001;
  }
  
  .menu-toggle:checked ~ .nav-menu {
    left: 0;
  }
  
  .nav-menu li {
    margin: 0;
    width: 100%;
  }
  
  .nav-menu a {
    display: block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
}
