:root {
  --main-red: #AE2929;
  --dark-bg: #212121;
  --text-dark: #333;
  --text-grey: #737171;
  --white: #ffffff;
  --bg-light-grey: #f7f7f7;
}

@font-face {
  font-family: 'Roboto';
  src: url('roboto.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

*::selection {
  color: var(--white);
  background-color: #807f7f;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
  background-color: var(--white);
}

a {
  color: var(--main-red);
  text-decoration: none;
}

ul {
  list-style: none;
}

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

.ahead {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

.ahead h1 {
  font-size: 38px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  padding-right: 20px;
  white-space: nowrap;
}

.line-section {
  background-color: var(--main-red);
  height: 4px;
  border: 0;
  flex-grow: 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

header {
  background: url("https://kudesniki.by/assets/images/back.png") center/cover no-repeat;
  color: var(--white);
}

.nav_cont {
  padding: 10px 15px;
}

.mnu_top {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-group {
  display: none;
}

.logoImg {
  max-width: 150px;
  display: block;
}

.line {
  width: 95%;
  margin: 0 auto;
  border-color: rgba(255, 255, 255, 0.5);
}

#main {
  display: flex;
  align-items: center;
  padding: 40px 0;
  min-height: calc(100vh - 160px);
}

.main-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.main-title-block {
  text-align: center;
}

.main-title-block h1 {
  font-size: 60px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin: 0;
}

.main-title-block h1 span:first-child {
  color: #E0E0E0;
  display: block;
}

.main-title-block h1 span:last-child {
  color: var(--white);
  display: block;
}

.main-title-block h2 {
  font-size: 28px;
  text-transform: uppercase;
  color: #F04A4A;
  font-weight: 500;
  margin-top: 15px;
}

.main-info-block {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 30px;
}

.spec {
  margin-bottom: 30px;
}

.spec li {
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}

.spec li:last-child {
  margin-bottom: 0;
}

.spec li::before {
  content: '\f00c';
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--main-red);
  font-size: 18px;
  margin-top: 4px;
}

.spec li span {
  color: #F04A4A;
  font-weight: 500;
}

.button-wrapper {
  text-align: center;
}

.btn {
  display: inline-block;
  background-color: var(--main-red);
  color: var(--white);
  padding: 15px 30px;
  border-radius: 10px;
  transition: all .3s ease;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  width: 100%;
}

.btn:hover {
  background-color: #ffffff;
  color: var(--main-red);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#about {
  padding: 80px 15px;
  background-color: #fdfdfd;
  border-bottom: 1px solid #e9e9e9;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.about-main-text h2 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 15px 0;
}

.about-main-text p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-grey);
  margin: 0;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.value-item i {
  font-size: 28px;
  color: var(--main-red);
  margin-top: 5px;
  width: 30px;
  text-align: center;
}

.value-text h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 5px 0;
}

.value-text p {
  font-size: 16px;
  color: var(--text-grey);
  margin: 0;
}

#road {
  position: relative;
  padding: 80px 15px;
}

#road::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(10, 10, 10, 0.75), rgba(10, 10, 10, 0.75)), url('https://kudesniki.by/assets/images/back.png');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.troad,
.wrapper {
  position: relative;
  z-index: 2;
}

.troad {
  font-size: 38px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 60px;
  color: var(--white);
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.road-item {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  min-height: 250px;
}

.road-item:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.1);
}

.num {
  font-size: 50px;
  font-weight: 700;
  color: var(--main-red);
  line-height: 1;
  margin-bottom: 20px;
  position: relative;
  padding-left: 10px;
}

.road-item p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: auto;
}

#price {
  padding: 80px 15px;
  background-color: var(--bg-light-grey);
}

.price-list {
  max-width: 900px;
  margin: 0 auto;
}

.price-category {
  background-color: var(--white);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.price-category-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: var(--white);
  border: none;
  font-family: inherit;
  transition: background-color 0.3s;
}

.price-category.is-open .price-category-header {
  background-color: #fdfdfd;
}

.price-category-header h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-dark);
  margin: 0;
}

.toggle-icon {
  font-size: 28px;
  font-weight: 300;
  color: var(--main-red);
  transition: transform 0.4s ease;
}

.price-category.is-open .toggle-icon {
  transform: rotate(45deg);
}

.price-category-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  padding: 0 25px;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f2;
}

.price-item:last-child {
  border-bottom: none;
  padding-bottom: 25px;
}

.service-name {
  font-size: 16px;
}

.sub-text {
  display: block;
  font-size: 14px;
  color: var(--text-grey);
  margin-top: 4px;
}

.price-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--main-red);
  white-space: nowrap;
  margin-left: 20px;
}

#record {
  padding: 80px 15px;
  background-color: var(--dark-bg);
}

.record-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1100px;
}

.feedback-card,
.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  color: var(--white);
}

.feedback-card h2,
.contact-card h2 {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 25px 0;
}

.feedback-card p {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  margin: -15px 0 25px 0;
}

.feedback-card form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.feedback-card input,
.feedback-card textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 16px;
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 14px;
  font-family: 'Roboto', sans-serif;
  border-radius: 8px;
  transition: border-color 0.3s, background-color 0.3s;
}

.feedback-card input:focus,
.feedback-card textarea:focus {
  outline: none;
  border-color: var(--main-red);
  background-color: rgba(255, 255, 255, 0.1);
}

.feedback-card textarea {
  min-height: 100px;
  resize: vertical;
}

.feedback-card input[type=submit] {
  background-color: var(--main-red);
  border: none;
  cursor: pointer;
  font-weight: 500;
  text-transform: uppercase;
  padding: 15px;
  transition: background-color .3s ease, transform .2s ease;
}

.feedback-card input[type=submit]:hover {
  background-color: #c83333;
  transform: translateY(-2px);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 18px;
  margin-bottom: 20px;
}

.contact-info-item:last-of-type {
  margin-bottom: 0;
}

.contact-info-item i {
  font-size: 22px;
  color: var(--main-red);
  width: 25px;
  text-align: center;
}

.contact-info-item a {
  color: var(--white);
  text-decoration: none;
  transition: color .3s;
}

.contact-info-item a:hover {
  color: var(--main-red);
  text-decoration: none;
}

.map-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-left: 45px;
  margin-top: -10px;
  margin-bottom: 20px;
}

.map-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s;
}

.map-links a:hover {
  color: var(--white);
}

.map-links i {
  font-size: 16px;
}

.contact-divider {
  border: none;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.15);
  margin: 30px 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.social-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 30px;
  transition: color .3s, transform .3s;
}

.social-links a:hover {
  color: var(--white);
  transform: scale(1.1);
}

footer {
  background-color: var(--dark-bg);
  color: var(--white);
  text-align: center;
  padding: 15px;
  font-size: 12px;
}

@media (min-width: 768px) {
  .nav_cont {
    padding: 10px 15px;
  }

  .mnu_top {
    justify-content: center;
  }

  .nav-group {
    display: flex;
    align-items: center;
  }

  .nav-group.nav-left a:not(:last-child) {
    margin-right: 40px;
  }

  .nav-group.nav-right a:not(:first-child) {
    margin-left: 40px;
  }

  .logo-li {
    margin: 0 50px;
  }

  .mnu_top a {
    color: var(--white);
    font-size: 20px;
    transition: color .4s ease;
    white-space: nowrap;
  }

  .nav-group a:hover {
    color: #cf8e8e;
  }

  .logoImg {
    max-width: 200px;
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }

  .about-main-text h2 {
    font-size: 34px;
  }

  .price-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .record-container {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .nav-group a {
    font-size: 22px;
  }

  .logoImg {
    max-width: 250px;
  }

  .main-content-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5%;
  }

  .main-title-block {
    text-align: left;
    flex-shrink: 0;
  }

  .main-title-block h1 {
    font-size: 100px;
  }

  .main-title-block h2 {
    font-size: 36px;
  }

  .main-info-block {
    padding: 40px;
    max-width: 480px;
    flex-shrink: 0;
  }

  .spec li {
    font-size: 18px;
  }

  .button-wrapper {
    text-align: left;
  }

  .btn {
    width: auto;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }

  .about-main-text h2 {
    font-size: 34px;
  }

  .road-item p {
    font-size: 18px;
  }

  .price-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  #phone-contact {
    font-size: 22px;
  }

  .social-links i {
    font-size: 32px;
  }
}

@media (min-width: 1200px) {
  .timeline {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1440px) {
  .main-title-block h1 {
    font-size: 120px;
  }
}