@import url("https://fonts.googleapis.com/css?family=Roboto|Roboto+Slab|Suez+One|Arimo");

/* ===== СБРОС ===== */
* {
  margin: 0;
  padding: 0;
  outline: none;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  background-color: #fafafa;
  font-family: "Trebuchet MS", Helvetica, sans-serif;
  color: #484848;
  line-height: 1.5;
}

h1, h2, h3, h4, h5 {
  font-family: "Roboto Slab", "Roboto", serif;
  font-weight: lighter;
}

a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #b0b0b0;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== ШАПКА ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 2%;
  background: transparent;
  z-index: 5000;
  transition: background 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

header.fixed {
  background-color: #fff;
  border-bottom: 1px solid silver;
}

header #logo {
  color: #fff;
  cursor: pointer;
  font-family: "Suez One", serif;
  font-size: 1.7em;
  line-height: 45px;
  transition: color 0.3s ease;
}

header.fixed #logo {
  color: #343434;
}

#about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 1em;
}

#about a {
  color: #fff;
  white-space: nowrap;
}

#about a:hover {
  color: #b0b0b0;
  text-decoration: underline;
}

header.fixed #about a {
  color: #343434;
}

header.fixed #about a:hover {
  color: #7c7c7c;
}

/* ===== ГЛАВНЫЙ ЭКРАН ===== */
#top {
  background-image: url("https://raw.githubusercontent.com/AMPVIP/ampvip.github.io/main/icons/back.jpg");
  background-blend-mode: multiply;
  background-color: #403f40;
  background-size: cover;
  background-position: center;
  width: 100%;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 20px;
}

@media (min-width: 1001px) {
  #top { font-size: 3em; min-height: 700px; }
}
@media (max-width: 1000px) and (min-width: 651px) {
  #top { font-size: 2em; min-height: 600px; }
}
@media (max-width: 650px) {
  #top { font-size: 1.3em; min-height: 500px; padding-top: 140px; }
}
@media (max-width: 450px) {
  #top { font-size: 0.95em; }
}

#top h1 {
  margin-bottom: 10px;
}

#top h3 {
  color: #ccc;
  font-weight: lighter;
}

/* ===== ОБО МНЕ ===== */
#main {
  background-color: #f6f6f6;
  border-top: 2px solid silver;
  color: #484848;
  padding: 80px 10%;
}

@media (min-width: 1401px) {
  #main { padding: 100px 20%; }
}

.intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.intro img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  background: #fafafa;
  padding: 5px;
  border: 2px solid silver;
  flex-shrink: 0;
}

.intro h2 {
  font-size: 2em;
  margin-bottom: 10px;
  color: #343434;
}

.intro h3 {
  color: #a0a0a0;
  font-weight: lighter;
  font-size: 1.2em;
}

#main .text {
  font-family: Arimo, Helvetica, sans-serif;
  font-size: 1.1em;
  color: #4a4a4a;
}

#main .text p {
  margin-bottom: 18px;
  line-height: 1.7;
}

#main .text h3 {
  font-family: "Roboto Slab", serif;
  font-size: 1.4em;
  color: #343434;
  margin: 25px 0 15px;
}

#main .text ul {
  list-style: none;
  padding-left: 0;
}

#main .text li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  line-height: 1.6;
}

#main .text li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #7c7c7c;
  font-weight: bold;
}

#main .text b {
  color: #343434;
}

/* ===== ОПЫТ ===== */
#faq {
  background-color: #fff;
  border-top: 2px dashed #e4e3e3;
  width: 100%;
  padding: 70px 5%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

#faq h5 {
  width: 100%;
  text-align: center;
  font-size: 2.8em;
  color: #4f4f4f;
  margin-bottom: 30px;
}

#faq .img {
  width: 340px;
  max-width: 100%;
  background: #fafafa;
  border-radius: 8px;
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
}

#faq .img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

#faq .title {
  display: inline-block;
  font-weight: lighter;
  color: #a3a0ad;
  font-size: 1.8em;
  margin-bottom: 15px;
}

#faq .title a,
#faq a.title {
  color: #a3a0ad;
}

#faq .img a .title,
#faq .img a {
  color: #5a5a72;
}

#faq .heading {
  display: block;
  color: #7d7d7d;
  font-size: 1.15em;
  font-weight: bold;
  margin-top: 14px;
  margin-bottom: 6px;
}

#faq p {
  font-family: Arimo, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #4a4a4a;
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* ===== ОБРАЗОВАНИЕ ===== */
#overview {
  background-image: url("https://raw.githubusercontent.com/AMPVIP/ampvip.github.io/main/icons/back.jpg");
  background-blend-mode: multiply;
  background-color: #403f40;
  background-size: cover;
  background-position: center;
  width: 100%;
  padding: 100px 5%;
  text-align: center;
  color: #fff;
}

#overview h2 {
  font-size: 3em;
  margin-bottom: 10px;
}

#overview h4 {
  color: #ccc;
  font-size: 1.4em;
  margin-bottom: 40px;
  font-weight: lighter;
}

@media (min-width: 561px) {
  #overview h2 { font-size: 4em; }
}
@media (max-width: 560px) {
  #overview h2 { font-size: 2em; }
}

#overview {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

#overview h2,
#overview h4 {
  width: 100%;
}

#overview .img {
  width: 340px;
  max-width: 100%;
  margin: 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 20px;
}

#overview img {
  background: #fafafa;
  padding: 5px;
  border: 2px solid silver;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 15px;
}

#overview span {
  display: block;
  font-size: 1.15em;
  line-height: 1.5;
  margin-top: 10px;
  color: #eaeaea;
}

#overview ul {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  text-align: left;
}

#overview ul li {
  margin-bottom: 8px;
  font-size: 0.95em;
  line-height: 1.5;
}

#overview ul li a {
  color: #fff;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
}

#overview ul li a:hover {
  color: #b0b0b0;
  text-decoration: none;
  border-bottom-color: #b0b0b0;
}

/* ===== КОНТАКТЫ ===== */
#contacts {
  width: 100%;
  padding: 70px 5%;
  border-top: 2px dashed #e4e3e3;
  background-color: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

#contacts h5 {
  width: 100%;
  text-align: center;
  font-size: 2.8em;
  color: #4f4f4f;
  margin-bottom: 30px;
}

#contacts > div {
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 15px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

#contacts > div:hover {
  background: #f4f4f4;
}

#contacts img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

#contacts span,
#contacts a {
  color: #4a4a4a;
  font-size: 0.95em;
  word-break: break-word;
  text-decoration: none;
}

#contacts a:hover {
  color: #7c7c7c;
  text-decoration: underline;
}

/* ===== ПОДВАЛ ===== */
footer {
  width: 100%;
  background: #fff;
}

footer hr {
  border: none;
  border-top: 1px solid #e4e3e3;
  margin: 0;
}

footer p {
  font-family: Arimo, Helvetica, sans-serif;
  color: #a0a0a0;
  font-size: 0.9em;
  padding: 20px;
}

.center {
  text-align: center;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 800px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 5%;
  }

  header #logo {
    font-size: 1.4em;
    line-height: 40px;
  }

  #about {
    gap: 12px;
    font-size: 0.9em;
    width: 100%;
    margin-bottom: 5px;
  }

  .intro {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .intro img {
    width: 160px;
    height: 160px;
  }

  .intro h2 {
    font-size: 1.5em;
  }

  #main {
    padding: 60px 6%;
  }

  #faq,
  #overview,
  #contacts {
    padding: 50px 5%;
  }

  #faq h5,
  #contacts h5 {
    font-size: 2em;
  }

  #overview h2 {
    font-size: 2.2em;
  }
}

@media (max-width: 480px) {
  #about {
    font-size: 0.85em;
    gap: 10px;
  }

  #about a {
    white-space: normal;
  }

  #faq .img,
  #overview .img,
  #contacts > div {
    width: 100%;
  }
}