/* Main styles for domain - Servicios contables */
:root {
  --cream: #f4e4dc;
  --coral: #f27649;
  --graphite: #263238;
  --milk: #fffdf6;
  --shadow: rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

section[id] {
  scroll-margin-top: 40px;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--cream);
  color: var(--graphite);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Rubik", sans-serif;
  margin-bottom: 1rem;
  color: var(--graphite);
}

a {
  color: var(--coral);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--graphite);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  background-color: var(--coral);
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--graphite);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px var(--shadow);
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 4px;
  background-color: var(--coral);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

/* Grid System */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Header Styles */
.header {
  background-color: var(--milk);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  font-family: "Rubik", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--graphite);
}

.logo span {
  color: var(--coral);
}

/* Navigation */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-link {
  color: var(--graphite);
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--coral);
}

/* Hamburger Menu (Mobile) */
/* Гамбургер на мобільних */
.hamburger-icon {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.hamburger-icon span {
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--graphite);
  border-radius: 3px;
  transition: var(--transition);
}

.hamburger-icon span:nth-child(1) {
  top: 0;
}
.hamburger-icon span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.hamburger-icon span:nth-child(3) {
  bottom: 0;
}

/* Меню */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 25px;
}

@media (max-width: 768px) {
  .hamburger-icon {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background-color: var(--milk);
    width: 100%;
    padding: 20px 0;
    text-align: center;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 10px 20px var(--shadow);
  }

  #menu-toggle:checked ~ .nav-menu {
    left: 0;
  }

  #menu-toggle:checked + .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  #menu-toggle:checked + .hamburger-icon span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle:checked + .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
}

/* Hero Section */
.hero {
  background-image: url("../img/QVVkI.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(38, 50, 56, 0.7);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: white;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* About Section */
.about-img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px var(--shadow);
}

.about-content {
  padding: 20px;
}

/* Benefits Section */
.benefit-card {
  background-color: var(--milk);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.benefit-card:hover {
  transform: translateY(-10px);
}

.benefit-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.benefit-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Services Section */
.service-card {
  background-color: var(--milk);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-content {
  padding: 20px;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* Testimonials */
.testimonial-card {
  background-color: var(--milk);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px var(--shadow);
  text-align: center;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 600;
  color: var(--coral);
}

/* Form Section */
.form-section {
  background-color: var(--milk);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 10px 30px var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 2px rgba(242, 118, 73, 0.2);
}

.form-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.form-check input {
  margin-right: 10px;
  margin-top: 5px;
}

.thank-you-box {
  background-color: var(--milk);
  border-radius: 10px;
  border: 2px solid var(--coral);
  padding: 40px;
  text-align: center;
  max-width: 600px;
  margin: 5rem auto;
  box-shadow: 0 10px 30px var(--shadow);
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px var(--shadow);
}

.faq-question {
  background-color: var(--milk);
  padding: 15px 20px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.faq-content {
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
}

.faq-toggle {
  display: none;
}

.faq-toggle:checked ~ .faq-content {
  max-height: 1000px;
  padding: 20px;
}

.faq-toggle:checked + .faq-question::after {
  transform: rotate(180deg);
}

.faq-question::after {
  content: "↓";
  transition: var(--transition);
}

/* Contact Section */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-icon {
  width: 25px;
  height: 25px;
  color: var(--coral);
}

.contact-text {
  flex: 1;
}

/* Map */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
.footer {
  background-color: var(--graphite);
  color: white;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: "Rubik", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}

.footer-logo span {
  color: var(--coral);
}

.footer-description {
  color: #ccc;
  margin-bottom: 20px;
}

.footer-title {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--coral);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-link {
  color: #ccc;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--coral);
  margin-left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  font-size: 14px;
}

/* Policy Pages */
.policy-container {
  background-color: var(--milk);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 10px 30px var(--shadow);
  max-width: 900px;
  margin: 40px auto;
}

.policy-container h1 {
  margin-bottom: 30px;
  text-align: center;
}

.policy-container h2 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.policy-container p {
  margin-bottom: 15px;
}

.policy-container ul {
  margin-bottom: 15px;
  padding-left: 20px;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--milk);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 10px 30px var(--shadow);
  z-index: 9999;
  max-width: 400px;
  display: none;
}

.cookie-content {
  margin-bottom: 15px;
}

.cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Select field custom styling */
select.form-control {
  appearance: none;
  background-image: url("../img/arrow-down.svg");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  padding-right: 40px;
}

/* Custom styling for select option background */
select.form-control option {
  background-color: var(--milk);
  color: var(--graphite);
  padding: 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hamburger-icon {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    background-color: var(--milk);
    width: 100%;
    flex-direction: column;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 10px 20px var(--shadow);
    transition: var(--transition);
    z-index: 999;
  }

  #menu-toggle:checked ~ .nav-menu {
    left: 0;
  }

  #menu-toggle:checked + .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  #menu-toggle:checked + .hamburger-icon span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle:checked + .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 70vh;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 50px 0;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .benefit-card,
  .service-card,
  .testimonial-card {
    padding: 20px;
  }

  .form-section,
  .policy-container {
    padding: 20px;
  }
}
