body {
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: #6c7279;
  background-color: white;
}

ul,
li {
  display: block;
}

*,
*:before,
*:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

p {
  margin: 0 0 10px 0;
}

/*container
================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/*Header
================== */

.header {
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background: #31344e url(../img/header/background.png) no-repeat center top /
    cover;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 35px 0;
  border-bottom: 1px solid #515369;
}

/*Nav
================== */

.nav {
  display: flex;
  font-size: 13px;
  font-weight: 700;

  text-transform: uppercase;
}

.nav__link {
  color: #ffffff;
  text-decoration: none;
  margin-left: 59px;
  opacity: 0.74;
  transition: 0.1s linear;
}

.nav__link:first-child {
  margin-left: 0;
}

.nav__link:hover {
  opacity: 1;
}
/* Intro
================*/

.intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 750px;
  padding-top: 100px;
}

.intro__inner {
  width: 100%;
  max-width: 970px;
  margin: 0 auto;
  text-align: center;
}

.intro__title {
  margin: 0 0 41px;
  font-family: "Open Sans", sans-serif;
  font-size: 65px;
  line-height: 71px;
  font-weight: 700;
  text-transform: uppercase;

  color: #ffffff;
}

.intro__subtitle {
  font-family: "Raleway";
  font-size: 22px;
  line-height: 33px;
  font-weight: 400;
  color: #ffffff;
}

/* Button
================*/

.btn {
  display: inline-block;
  vertical-align: top;
  padding: 14px 40px;
  margin-top: 77px;
  text-align: center;
  font-family: "Raleway", sans-serif;
  font-size: 13px;
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  transition: 0.1s linear;
}

.btn--red {
  width: 200px;
  height: 46px;
  background-color: #e84545;
  border-radius: 2px;
}

.btn--red:hover {
  background-color: #b62020;
}

.btn--long {
  margin-top: 40px;
  min-width: 280px;
}

/*==================*/

/* Features
=====
*/

.features {
  display: flex;
  flex-wrap: wrap;
  margin: 100px 0;
}

.features__item {
  width: 33.33333%;
  text-align: center;
  padding: 0 25px;
  margin: 25px 0;
}

.features__icon {
  margin-bottom: 34px;
}

.features__title {
  margin-bottom: 25px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #2d3033;
}

.features__text {
  font-size: 14px;
  color: #6c7279;
  line-height: 1.5;
}

/* Works
=====
*/

.works {
  display: flex;
  flex-wrap: wrap; /*so that the elements would jump 
on a new line */
}

.works__item {
  width: 25%;
  position: relative;
  overflow: hidden; /*We hide everything that will crawl outside our block*/
  height: 350px;
  background-color: #2b2e4a;

  border-bottom: 1px solid #fff; /*The whit(e) border between the pictures*/
  border-right: 1px solid #fff;
}

.works__item:hover .works__content {
  opacity: 1; /*an element appearsс works__content*/
}

.works__photo {
  position: absolute; /*Now our picture will be located inside Works__item and will be positioned absolutely relative to this block  */
  top: 50%;
  left: 50%; /*that is, we press up in the left */
  z-index: 1;

  transform: translate3d(-50%, -50%, 0);
}

.works__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: rgba(232, 69, 69, 0.9);
  opacity: 0; /*The block disappeared only when it is hung on it by the cursor*/
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  transition: 0.2s linear;
}

.works__title {
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}

.works__text {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
  color: #ffffff;
}

/* STAFF
==========================*/

.team {
  margin: 100px 0 70px;
}

.team__inner {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.team__item {
  width: 25%;
  padding: 0 15px;
  margin-bottom: 30px;
}

.team__photo {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.team__name {
  margin-bottom: 8px;
  font-size: 22px;
  color: #2d3033;
}

.team__prof {
  margin-bottom: 15px;
  font-size: 13px;
  color: #e84545;
  text-transform: uppercase;
}

.team__text {
  font-size: 14px;
  line-height: 1.5;
  color: #6c7279;
  margin-bottom: 30px;
}

.team__icon-box a {
  font-size: 30px;
  color: #e4e4e4;
  transition: 0.2s linear;

  /* */
  width: 40px;
  height: 40px; /* Размеры */

  border: 1px solid #e8ecee; /* Radius of rounding */
}

.team__icon-box a:hover {
  color: #949494;
}

/*Reviews
=============== */

.reviews {
  background-color: #53354a;
  overflow: hidden;
}

.reviews__item {
  display: flex;
  flex-wrap: wrap;
}

.reviews__photo {
  width: 50%;
  height: 500px;
  position: relative;
}

.reviews__img {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 1;
  transform: translateY(-50%);
}
.reviews__conternt {
  display: flex;
  flex-direction: column; /*so that each new element is from a new line */

  justify-content: center;

  width: 50%;
  padding-left: 80px;
}

.reviews__text {
  font-family: "Cardo", sans-serif;
  font-style: italic;
  font-size: 36px;
  line-height: 1.2;
  color: #fff;
}

.reviews__autor {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin-top: 30px;
}

/*Download
==============
*/

.download {
  margin: 90px 0;
  text-align: center;
}

.download__title {
  margin-bottom: 5px;
  font-size: 28px;
  color: #2d3033;
  font-weight: 300;
}

.download__text {
  font-size: 13px;
  font-weight: 700;
  color: #2d3033;
  text-transform: uppercase;
}

/* Footer
===================*/

.footer {
  background-color: #3a3e64;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  padding: 70px 0;
}

.footer__block {
  width: 33.33333%;
  padding: 0 15px; /*padding left and right so that when we reduce the screen they do not stick together*/
  text-align: center;
}

.footer__title {
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 700px;
  text-transform: uppercase;
  color: #fff;
}

.footer__adress {
  font-size: 14px;
  line-height: 1.5;
  font-style: normal;
  color: rgba(255, 255, 255, 0.5);
}

.active-icon-box a {
  font-size: 30px;
  color: #ffffff;
  transition: 0.2s linear;
  width: 40px;
  height: 40px;
  border: 2px solid #ffffff; /*Radius of rounding */
  background-color: rgba(255, 255, 255, 0);
  margin-left: 7px;
}

.active-icon-box a:hover {
  color: #000000;
  background-color: #ffffff;
}

.about-activebox {
  opacity: 0.5;
  font-family: "Raleway" sans-serif;
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
  color: #ffffff;
}

/* Footer copyright*/

.copyright {
  padding: 20px 0;
  background-color: #313454;
}

.copyright__text {
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: #808080;
}

.copyright__text a {
  color: #fff;
  text-decoration: none;
}

/* --- Enhancements (non-destructive, appended) --- */

html {
  scroll-behavior: smooth;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 15px;
  top: 15px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: #ffffff;
  color: #000000;
  border-radius: 4px;
  z-index: 2000;
}

/* Focus visibility for interactive elements */
.nav__link:focus-visible,
.btn:focus-visible,
.team__icon-box a:focus-visible,
.active-icon-box a:focus-visible {
  outline: 3px solid #e84545;
  outline-offset: 2px;
}

/* Fix minor typo weights and class aliases */
.footer__title { font-weight: 700; }
.footer__address {
  font-size: 14px;
  line-height: 1.5;
  font-style: normal;
  color: rgba(255, 255, 255, 0.5);
}
.reviews__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  padding-left: 80px;
}
.reviews__author {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin-top: 30px;
}

/* Mobile navigation (CSS-only toggle) */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

@media (max-width: 768px) {
  .nav-toggle-label {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 28px;
    cursor: pointer;
  }
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: "";
    display: block;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
  }
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    width: 100%;
  }

  .nav {
    display: none;
    position: absolute;
    right: 15px;
    top: 80px;
    background: rgba(49, 52, 78, 0.98);
    padding: 10px 14px;
    border: 1px solid #515369;
    border-radius: 6px;
    flex-direction: column;
    gap: 10px;
  }
  .nav__link { margin-left: 0; }
  .nav-toggle:checked ~ .nav { display: flex; }
}

/* Responsive layout tweaks */
@media (max-width: 1200px) {
  .intro__title { font-size: 56px; line-height: 64px; }
}
@media (max-width: 992px) {
  .features__item { width: 50%; }
  .team__item { width: 50%; }
  .works__item { width: 33.3333%; }
  .intro { height: 640px; }
}
@media (max-width: 768px) {
  .features__item { width: 50%; }
  .team__item { width: 50%; }
  .works__item { width: 50%; height: 300px; }
  .intro__title { font-size: 42px; line-height: 48px; }
  .intro__subtitle { font-size: 18px; line-height: 28px; }
  .header__inner { padding: 20px 0; }
  .reviews__photo,
  .reviews__content { width: 100%; padding-left: 0; }
  .reviews__photo { height: 300px; }
  .reviews__img { position: relative; right: auto; transform: none; max-width: 100%; height: auto; }
}
@media (max-width: 576px) {
  .features__item { width: 100%; }
  .team__item { width: 100%; }
  .works__item { width: 100%; height: 260px; }
  .btn { margin-top: 32px; padding: 12px 24px; }
}

/* Respect users that prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Improve image rendering inside works grid */
.works__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  transform: none;
}

/* Minor font fallback fix */
.about-activebox { font-family: "Raleway", sans-serif; }
.header__inner { position: relative; }

/* Muxammedali 2025 year */