/* Reset CSS */
*,
*::before,
*::after {
  box-sizing: border-box; 
  color: #ffffff;
}

ul,
ol {
  padding: 0;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol,
li {
  list-style: none;
}

a {
  text-decoration: none;
}

/* Main Styles */
html {
  font-family: "Roboto", sans-serif;
}

body {
  background: #000;
  color: #fff;
}

.container {
  width: 80%;
  margin: 0 auto;
}

.button {
  border: 2px solid white;
  border-radius: 40px;
  padding: 10px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.button-round {
  border-radius: 50px;
}

.button-gradient {
  background: #28aace;
  padding: 17.5px 49.4px;
  border: none;
  color: white;
}

.button-gradient:hover {
  background: #1e8ba8;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 170, 206, 0.4);
}

.button span {
  font-size: 18px;
  font-weight: 400;
}

/* Header Styles */
header {
  background: url(../images/header-bg.jpg) center center/cover no-repeat;
  padding: 30px 0;
  min-height: 900px;
  position: relative;
  z-index: 999;
}

.header-wrapper {
  width: 100%;
  position: relative;
  z-index: 999;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 80%;
  height: 100px;
  top: 10px;
}

.header.scrolled {
  width: 100%;
  right: 0;
  top: 0;
  background-color: rgba(0, 0, 0, 0.95);
  padding: 0 10%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.header_logo p {
  font-size: 24px;
  font-weight: 700;
  color: #28aace;
}

.menu {
  display: flex;
}

.menu-item {
  margin-right: 30px;
}

.menu-item_link {
  font-size: 14px;
  color: #fff;
  transition: color 0.3s ease;
}

.menu-item_link:hover {
  color: #28aace;
}

.header-text {
  text-align: center;
  margin-top: 165px;
}

/* ПРАВКА: Зміна заголовку згідно п.2 ТЗ */
.title {
  text-transform: uppercase;
  font-size: 110px;
  line-height: 116px;
  background: linear-gradient(45deg, #28aace, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  margin-top: 25px;
  color: #c2c2c2;
  font-size: 16px;
  line-height: 22px;
}

.header-button {
  text-align: center;
  margin-top: 100px;
}

/* ПРАВКА: Плавающая кнопка сделана круглой согласно п.4 ТЗ */
.floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #28aace;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(40, 170, 206, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(40, 170, 206, 0.5);
}

/* Counter Section */
.counter {
  margin: 90px 0;
  background: #f5f5f5;
  padding: 60px 0;
}

.counter-items {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.counter-item {
  position: relative;
}

.counter-item::after {
  content: "";
  position: absolute;
  right: -80px;
  top: 40px;
  width: 2px;
  height: 80px;
  background: #888;
}

.counter-item:last-child::after {
  display: none;
}

.counter-title {
  font-size: 68px;
  font-weight: 400;
  color: #28aace;
  margin-bottom: 25px;
}

.counter-subtitle {
  color: #333;
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
}

/* ПРАВКА: Секция услуг с аккордеоном (п.5 ТЗ) */
.services {
  background: url(../images/header-bg.jpg) center center/cover no-repeat;
  padding: 120px 0;
}

.service-title {
  font-size: 56px;
  line-height: 68px;
  text-align: center;
  color: white;
  margin-bottom: 60px;
}

.accordion {
  margin-top: 60px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.accordion-item {
  border-bottom: 1px solid #626161;
  margin-bottom: 10px;
}

.accordion-header {
  padding: 25px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 24px;
  font-weight: 500;
  color: white;
  transition: color 0.3s ease;
}

.accordion-header:hover {
  color: #28aace;
}

.accordion-icon {
  font-size: 24px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content.active {
  max-height: 1000px;
}

.accordion-body {
  padding: 0 0 25px 0;
}

.service-list-accordion {
  list-style: none;
  padding: 0;
}

.service-list-accordion li {
  padding: 8px 0;
  color: #c2c2c2;
  font-size: 18px;
  border-bottom: none;
}

.accordion-body p {
  color: #c2c2c2;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* ПРАВКА: Секция Экспертиза согласно п.6 ТЗ */
.expertise {
  background: #f5f5f5;
  padding: 100px 0;
}

.about-title {
  color: #333;
  font-size: 56px;
  line-height: 68px;
  text-align: center;
}

.expertise-subtitle {
  color: #666;
  font-size: 18px;
  text-align: center;
  margin: 30px 0 40px 0;
  line-height: 1.5;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.line {
  width: 100px;
  height: 2px;
  background: #28aace;
  margin: 20px auto 40px;
}

.expertise-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}

.expertise-label {
  color: #999;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-align: center;
  display: block;
  width: 100%;
}

.expertise-content>p {
  color: #333;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 25px;
  margin-top: 40px;
  text-align: left;
}

.expertise-content strong {
  color: #333;
}

/* ПРАВКА: Блок "ЯК МИ ПРАЦЮЄМО" согласно п.7 ТЗ */
.work-process {
  background: #1a1a1a;
  padding: 100px 0;
  color: white;
}

.process-title {
  font-size: 56px;
  text-align: center;
  margin-bottom: 80px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.process-item {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.process-item:hover {
  transform: translateY(-10px);
  background: rgba(40, 170, 206, 0.1);
}

.process-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #28aace;
  border-radius: 50%;
  color: white;
}

.process-item h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: white;
  font-weight: 500;
}

.process-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #c2c2c2;
}

/* ПРАВКА: Секция Компания согласно п.8 ТЗ */
.team-section {
  padding: 100px 0;
  background: white;
}

.team-section .about-title {
  color: #333;
}

.team-description {
  color: #666;
  font-size: 18px;
  text-align: center;
  margin-top: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ПРАВКА: Блок опыта перенесен согласно п.9 ТЗ */
.experience-block {
  background: #333;
  padding: 80px 0;
  text-align: center;
}

.experience-text {
  font-size: 28px;
  color: white;
  font-weight: 300;
  line-height: 1.4;
  max-width: 800px;
  margin: 0 auto;
}

/* Reviews Section */
.reviews {
  background: #f9f9f9;
  padding: 100px 0;
  position: relative;
}

.reviews .about-title {
  color: #333;
}

.reviews-nav {
  position: absolute;
  top: 22%;
  right: 18%;
}

.swiper-button-next {
  left: 80px;
}

.swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after {
  content: "▷";
  color: #333;
}

.swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after {
  content: "◁";
  color: #333;
}

.swiper {
  margin-top: 100px;
}

.reviews-inner {
  padding: 30px 32px 34px 39px;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.reviews-descr {
  font-size: 18px;
  padding-bottom: 12px;
  flex-grow: 1;
  line-height: 1.5;
  overflow-y: auto;
}

.reviews-descr p {
  color: #666;
  line-height: 1.5;
}

.swiper-slide {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 300px;
}

.reviews-author {
  display: flex;
  justify-content: start;
  align-items: center;
  margin-top: 25px;
  border-top: 2px solid #e0e0e0;
  padding-top: 15px;
  flex-shrink: 0;
}

.reviews-author__text {
  margin-left: 25px;
  font-size: 18px;
}

.reviews-author__img img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.text-author {
  color: #333;
  font-weight: 500;
}

/* ПРАВКА: Секция ценностей - простой подход с wrapper */
.values-section {
  background: #f9f9f9;
  padding: 80px 0;
}

.values-title {
  color: #333;
  font-size: 36px;
  text-align: center;
  margin-bottom: 50px;
}

.values-grid {
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 40px;
}

.values-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}

.values-row:last-child {
  margin-bottom: 0;
}

.value-item {
  text-align: left;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 350px;
  flex-shrink: 0;
}

.value-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.value-item h4 {
  color: #28aace;
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 600;
}

.value-item p {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

/* ПРАВКА: Контактная секция разделена на две части согласно п.12-14 ТЗ */
.contact-section {
  background: url(../images/header-bg.jpg) center center/cover no-repeat;
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form {
  background: rgba(0, 0, 0, 0.3);
  padding: 50px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info {
  padding: 50px 30px;
}

.contact-info h3 {
  color: white;
  font-size: 32px;
  margin-bottom: 40px;
  font-weight: 500;
}

.contact-details {
  color: #c2c2c2;
  font-size: 18px;
  line-height: 1.8;
}

.contact-details p {
  margin-bottom: 25px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-details p:last-child {
  border-bottom: none;
}

.contact-details a {
  color: #28aace;
  text-decoration: none;
  font-weight: 500;
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-details strong {
  color: white;
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.contact-details small {
  color: #999;
  font-size: 14px;
  line-height: 1.4;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  color: white;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 500;
}

.input {
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 0 25px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 16px;
  color: #fff;
  width: 100%;
  transition: all 0.3s ease;
}

.input:focus {
  outline: none;
  border-color: #28aace;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(40, 170, 206, 0.2);
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

select.input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3e%3cpath d='m7.247 4.86-4.796 5.481c-.566.647-.106 1.659.753 1.659h9.592a1 1 0 0 0 .753-1.659l-4.796-5.48a1 1 0 0 0-1.506 0z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 16px;
}

/* ПРАВКА: Стилі для option елементів щоб виправити білий фон */
select.input option {
  background: #1a1a1a;
  color: #fff;
  padding: 10px;
  border: none;
}

textarea.input {
  border-radius: 15px;
  padding: 20px 25px;
  height: auto;
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}

/* ПРАВКА: Стили для загрузки файлов согласно п.13 ТЗ */
.file-input-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-input-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
  height: 60px;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
}

.file-input-label:hover {
  border-color: #28aace;
  background: rgba(40, 170, 206, 0.1);
  color: white;
}

.footer-title {
  color: #fff;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 40px;
  text-align: center;
}

.button-form {
  width: 100%;
  margin-top: 30px;
  padding: 20px;
  font-size: 18px;
  font-weight: 500;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.button-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 170, 206, 0.4);
}

/* Footer Styles */
footer {
  background: url(../images/header-bg.jpg) center center/cover no-repeat;
  padding: 50px 0 25px 0;
  text-align: center;
}

.copy {
  background-color: #000000;
}

.copy .footer p {
  font-size: 12px;
  color: #c2c2c2;
  font-weight: 300;
  padding: 25px 0;
  text-align: center;
}

.form-btn {
  text-align: center;
}

/* ПРАВКА: Соціальні кнопки з SVG іконками */
.social {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  gap: 15px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #333;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
  text-decoration: none;
}

.social-link:hover {
  background: #555;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: white;
  stroke: none;
}

/* Responsive Styles */
@media screen and (max-width: 1200px) {
  nav {
    display: none;
  }
}

@media screen and (max-width: 800px) {
  .title {
    font-size: 85px;
    line-height: normal;
  }

  .counter-items {
    flex-wrap: wrap;
  }

  .counter-item {
    width: 45%;
    margin-top: 50px;
  }

  .counter {
    margin: 70px 0;
    margin-top: 20px;
  }

  .counter-item:nth-last-child(3):after {
    display: none;
  }

  .counter-item::after {
    width: 80px;
    height: 2px;
    top: 195px;
    right: 100px;
  }

  .counter-item:nth-last-child(2):after {
    top: -24px;
    right: -240px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .contact-form {
    padding: 40px 30px;
    margin-bottom: 30px;
  }

  .contact-info {
    padding: 30px 20px;
  }

  .contact-info h3 {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .footer-title {
    font-size: 30px;
    margin-bottom: 30px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 500px;
  }

  .values-grid .value-item:nth-child(4),
  .values-grid .value-item:nth-child(5) {
    grid-column: 1;
    grid-row: auto;
  }

  .value-item {
    width: 100%;
    max-width: 400px;
  }

  .accordion-header {
    font-size: 20px;
  }

  .service-title,
  .about-title {
    font-size: 48px;
  }

  .values-title {
    font-size: 28px;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
    bottom: 20px;
    right: 20px;
  }

  .expertise-subtitle {
    font-size: 16px;
  }

  .experience-block {
    padding: 60px 0;
  }

  .experience-text {
    font-size: 22px;
    padding: 0 20px;
  }

  .social-link {
    margin: 0 5px;
    padding: 10px;
    width: 44px;
    height: 44px;
  }

  .social-img {
    width: 20px;
    height: 20px;
  }

  .file-input-label {
    font-size: 14px;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .process-title {
    font-size: 42px;
  }
}

@media screen and (max-width: 450px) {
  .title {
    font-size: 46px;
  }

  .counter-title {
    font-size: 46px;
  }

  .counter-subtitle {
    font-size: 17px;
  }

  .counter-item::after {
    top: 165px;
    right: 35px;
  }

  .counter-item:nth-last-child(2):after {
    top: -26px;
    right: -153px;
  }

  .about-title {
    font-size: 40px;
  }

  .service-title {
    font-size: 36px;
  }

  .values-title {
    font-size: 24px;
  }

  .reviews-nav {
    right: 38%;
  }

  .accordion-header {
    font-size: 18px;
    padding: 20px 0;
  }

  .service-list-accordion li {
    font-size: 16px;
  }

  .value-item {
    padding: 20px;
  }

  .contact-details {
    font-size: 16px;
  }

  .footer-title {
    font-size: 24px;
  }

  .expertise-content {
    font-size: 16px;
  }

  .team-description {
    font-size: 16px;
  }

  .values-grid {
    margin-top: 20px;
  }

  .floating-btn {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .experience-text {
    font-size: 18px;
    line-height: 1.3;
  }

  .contact-details small {
    font-size: 12px;
  }

  .social-link {
    margin: 0 3px;
    padding: 8px;
    width: 40px;
    height: 40px;
  }

  .social-img {
    width: 18px;
    height: 18px;
  }

  .file-input-label {
    font-size: 12px;
    height: 50px;
  }

  .input {
    height: 50px;
  }

  textarea.input {
    min-height: 80px;
  }

  .contact-info h3 {
    font-size: 24px;
  }

  .contact-details p {
    margin-bottom: 15px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .process-title {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .process-item {
    padding: 25px 15px;
  }

  .process-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }

  .process-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .process-item p {
    font-size: 14px;
  }
}