:root {
  --primary-color: rgb(173, 40, 41);
  --secondary-color: rgb(77, 73, 72);
  --accent-color: rgb(245, 243, 238);
  --background-color: rgb(250, 248, 245);
  --sidebar-bg: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--background-color);
  color: var(--secondary-color);
}

h1, h2, h3 {
  text-align: center;
  margin-bottom: 0.5em;
  font-weight: bold;
}

p {
  text-indent: 2em;
  padding: 0 20px;
  line-height: 1.75;
  font-size: 1.05em;
}

strong {
  font-weight: bold;
  color: var(--secondary-color);
}

em {
  font-style: italic;
  color: var(--secondary-color);
}

blockquote {
  margin: 1em 20px;
  padding: 1em;
  background-color: #f9f9f9;
  border-left: 5px solid var(--primary-color);
  font-style: italic;
}

.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  background-color: var(--primary-color);
  color: white;
  padding: 0.5em 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.social-icons {
  display: flex;
  gap: 0.5em;
}

.social-icons a {
  color: white;
  text-decoration: none;
  font-size: 1.2em;
  transition: transform 0.3s;
}

.social-icons a:hover {
  transform: scale(1.1);
}

.btn-contact {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.75em 1.5em;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  margin-top: 1em;
  transition: background-color 0.3s ease;
}

.btn-contact:hover {
  background-color: rgb(150, 35, 36);
}

header {
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
}

.header-logo {
  height: 100px;
}

.header-phone {
    color: var(--secondary-color);
}

nav {
  background-color: var(--primary-color);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1em;
  padding: 0.5em;
}

nav a {
  text-decoration: none;
  color: white;
  padding: 0.5em 1em;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: rgb(150, 35, 36);
}

.mobile-nav-toggle {
  display: none;
  font-size: 1.5em;
  background: none;
  color: var(--primary-color);
  border: none;
  padding: 0.5em;
}

.content-wrapper {
  background-color: var(--background-color);
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 1em;
  flex-wrap: wrap;
}

.main-content {
  flex: 3;
  padding-right: 1em;
  width: 100%;
}

.main-content section {
  margin-bottom: 2em;
}

.sidebar {
  flex: 1;
  background-color: rgb(224, 224, 224);
  padding: 1.5em;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-top: 1em;
  min-width: 300px;
  border-radius: 10px;
  font-size: 1.05em;
}

.sidebar h2 {
  color: var(--primary-color);
  text-align: center;
  font-weight: bold;
}

.sidebar ul {
  list-style: none;
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.sidebar ul li {
  padding-left: 1.5em;
  position: relative;
  margin-bottom: 0.75em;
  font-size: 1.1em;
  line-height: 1.4;
}

.sidebar ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.sidebar .header-phone {
  text-align: center;
  font-size: x-large;
  font-weight: bold;
  color: var(--secondary-color);
}

.sidebar .header-phone a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

form {
  display: grid;
  gap: 1em;
}

input, textarea {
  width: 100%;
  padding: 0.75em;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
}

button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75em;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
}

.service-content {
  display: flex;
  gap: 1.5em;
  background-color: var(--sidebar-bg);
  padding: 1.5em;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  margin-bottom: 2em;
  line-height: 1.6;
}

.service-content img {
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.service-content .service-text {
  flex: 1;
}

.service-section.reverse .service-content {
  flex-direction: row-reverse;
}

.cta-center {
  text-align: center;
  margin-top: 1em;
  font-weight: bold;
}

.bottom-section {
  background-color: var(--accent-color);
  padding: 2em 1em;
  text-align: center;
  color: var(--secondary-color);
  font-size: 1.05em;
}

.bottom-section p {
  max-width: 800px;
  margin: 1em auto;
  text-indent: 2em;
}

footer {
  background-color: rgb(224, 224, 224);
  color: var(--secondary-color);
  text-align: center;
  padding: 1em;
}

footer img {
  max-width: 250px;
  margin-bottom: 0.1em;
}

.choose-us-section {
  background-color: rgb(224, 224, 224);
  padding: 2em;
  margin: 2em auto;
  max-width: 960px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  color: var(--secondary-color);
  display: none;
  font-size: 1.05em;
}

.choose-us-section h2 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1em;
  font-weight: bold;
}

.choose-us-section ul {
  list-style: none;
  padding: 0;
  margin: 1em 0;
}

.choose-us-section ul li {
  padding-left: 1.5em;
  position: relative;
  margin-bottom: 0.75em;
  font-size: 1.1em;
  line-height: 1.4;
}

.choose-us-section ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.choose-us-section form {
  display: grid;
  gap: 1em;
  margin-top: 1.5em;
}

.choose-us-section input,
.choose-us-section textarea {
  width: 100%;
  padding: 0.75em;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
}

.choose-us-section button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75em;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;font-size: large;
  transition: background-color 0.3s ease;
}

.choose-us-section button:hover {
  background-color: rgb(150, 35, 36);
}

.choose-us-section .header-phone {
  text-align: center;
  font-size: x-large;
  font-weight: bold;
  color: var(--secondary-color);
}

.choose-us-section .header-phone a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

@media (max-width: 1200px) {
  .content-wrapper {
    flex-direction: column;
  }

  .sidebar {
    display: none;
  }

  .choose-us-section {
    display: block;
  }

  .main-content {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
  }

  .main-content {
    padding-right: 0;
  }

  .service-content,
  .service-section.reverse .service-content {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
  }

  .service-content img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
  }

  .service-content .service-text {
    max-width: 100%;
    margin-top: 1em;
    padding: 0 1em;
  }

  nav ul {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  nav ul.active {
    display: flex;
  }

  .mobile-nav-toggle {
    display: block;
  }
}
