body {
  font-family: Arial, sans-serif;
  background: #fff;
  color: #222;
  margin: 0;
  padding: 0;
}

section {
  padding: 60px 20px;
}

/* =================
   CTA è îáùèå áëîêè
   ================= */
.cta-section {
  text-align: center;
  background: #fff;
  padding-bottom: 40px;
}
.cta-section h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #111;
}
.cta-section p {
  font-size: 18px;
  color: #555;
  margin-bottom: 30px;
}
.cta-section a.button {
  display: inline-block;
  background-color: #d40000;
  color: #fff;
  padding: 16px 36px;
  font-size: 17px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 7px;
  box-shadow: inset 0 0 0 2px #fff;
  transition: background 0.3s;
}
.cta-section a.button:hover {
  background-color: #a80000;
}
.selling-text {
  background: #fff;
  padding: 36px 0 18px 0;
  text-align: center;
  font-size: 22px;
  font-weight: 400;
}
.selling-text .container {
  max-width: 820px;
  margin: 0 auto;
  color: #181818;
}

/* ================
   Êàðòî÷êè-òåçèñû
   ================ */
.thesis-cards {
  background: #fff;
  padding: 36px 0 28px 0;
}
.flex-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.thesis-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(212,0,0,0.06);
  width: 172px;
  min-width: 120px;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 12px 18px 12px;
  transition: box-shadow .22s, transform .22s;
  text-align: center;
  position: relative;
}
.thesis-card img {
  width: 48px; height: 48px; margin-bottom: 16px;
  object-fit: contain;
}
.thesis-card span {
  font-size: 17px;
  color: #181818;
  font-weight: 500;
  display: block;
  margin-top: 2px;
}
.thesis-card:hover {
  box-shadow: 0 8px 22px rgba(212,0,0,0.12);
  transform: translateY(-4px) scale(1.04);
  background: #fff8f7;
}

/* --- Òåêñòóðíûå ñòèëè êàðòî÷åê --- */
/* Áóìàãà */
.thesis-card.texture-paper {
  background: #fffdfa url('../img/textures/paper.png') repeat center center / cover;
  border-radius: 14px;
  box-shadow: 0 3px 18px rgba(80,60,20,0.10), 0 1px 0 #f8f4e3 inset;
  border: 1.2px solid #ece5d8;
  overflow: hidden;
}
/* Ìåòàëë (íåéòðàëüíûé) */
.thesis-card.texture-metal {
  background: #dde2e8 url('../img/textures/metal.png') repeat center center / cover;
  border-radius: 16px;
  box-shadow: 0 2px 18px rgba(80,80,90,0.15), 0 1px 0 #eee inset;
  border: 1.2px solid #c4c6cc;
  overflow: hidden;
}
/* Çîëîòî */
.thesis-card.texture-gold {
  background: #ffefc5 url('../img/textures/gold.png') repeat center center / cover;
  border: 1.3px solid #e5c700;
  overflow: hidden;
}
/* Ðîçîâîå çîëîòî */
.thesis-card.texture-rosegold {
  background: #fcd5c8 url('../img/textures/rosegold.png') repeat center center / cover;
  border: 1.3px solid #e7b9a3;
  overflow: hidden;
}
/* Ìåäü */
.thesis-card.texture-copper {
  background: #f6e6d4 url('../img/textures/copper.png') repeat center center / cover;
  border: 1.3px solid #d5a173;
  overflow: hidden;
}
/* Ñèíÿÿ ñòàëü */
.thesis-card.texture-bluesteel {
  background: #e8f0fd url('../img/textures/bluesteel.png') repeat center center / cover;
  border: 1.3px solid #5979a1;
  overflow: hidden;
}

/* ----------- Ýôôåêò "òàðåëêè" äëÿ ïÿòè êàðòî÷åê ----------- */
.flex-cards .thesis-card:nth-child(1) {
  transform: perspective(500px) rotateY(18deg);
  box-shadow: 32px 6px 32px -8px rgba(80,80,90,0.16), 8px 0 22px -12px rgba(80,80,90,0.09);
  z-index: 1;
}
.flex-cards .thesis-card:nth-child(2) {
  transform: perspective(500px) rotateY(8deg);
  box-shadow: 16px 8px 28px -10px rgba(80,80,90,0.13), 4px 0 18px -10px rgba(80,80,90,0.08);
  z-index: 2;
}
.flex-cards .thesis-card:nth-child(3) {
  transform: none;
  box-shadow: 0 10px 32px -10px rgba(80,80,90,0.13);
  z-index: 3;
}
.flex-cards .thesis-card:nth-child(4) {
  transform: perspective(500px) rotateY(-8deg);
  box-shadow: -16px 8px 28px -10px rgba(80,80,90,0.13), -4px 0 18px -10px rgba(80,80,90,0.08);
  z-index: 2;
}
.flex-cards .thesis-card:nth-child(5) {
  transform: perspective(500px) rotateY(-18deg);
  box-shadow: -32px 6px 32px -8px rgba(80,80,90,0.16), -8px 0 22px -12px rgba(80,80,90,0.09);
  z-index: 1;
}
/* ----------- Ïðîçðà÷íûé ýôôåêò äëÿ ïÿòè êàðòî÷åê ----------- */
.thesis-cards-bg {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 8px 36px 0 rgba(180,180,180,0.08);
  max-width: 1150px;
  margin: 0 auto;
  padding: 32px 18px;
  display: flex;
  justify-content: center;
}
@media (max-width: 1200px) {
  .thesis-cards-bg { max-width: 98vw; border-radius: 18px; }
}
@media (max-width: 700px) {
  .thesis-cards-bg { padding: 8px 2vw; border-radius: 10px; }
}

/* Õîâåð ýôôåêò — ìÿãêàÿ ïîäñâåòêà */
.flex-cards .thesis-card:not(:nth-child(3)):hover {
  background: #fff8f7;
  transform: scale(1.08) perspective(500px) rotateY(var(--tilt, 0deg));
  box-shadow: 0 20px 48px rgba(80,0,0,0.18), 0 1px 0 #eee inset;
}
.flex-cards .thesis-card:nth-child(3):hover {
  background: #fff8f7;
  transform: scale(1.10);
  box-shadow: 0 28px 60px rgba(80,0,0,0.20), 0 1px 0 #eee inset;
}
.thesis-card img {
  /* Ôàéë èêîíêè — 128?128px PNG èëè SVG! */
  width: 64px;     /* Íà îáû÷íîì ýêðàíå — èêîíêà âûãëÿäèò êàê 64?64px */
  height: 64px;
  max-width: 100%;
  display: block;
  margin: 0 auto 16px auto;
  object-fit: contain;
}

/* Äëÿ ðåòèíà-ýêðàíîâ è âûøå (2x, 3x, 4x) — èêîíêà áóäåò âûãëÿäåòü ñâåðõ÷¸òêî */
@media
(-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .thesis-card img {
    /* ÍÅ óâåëè÷èâàåì ðàçìåð! Ôèçè÷åñêèé ðàçìåð ôàéëà — 128?128px,
       à â ìàêåòå — 64?64px. Retina ïîêàæåò âñ¸ ÷¸òêî. */
  }
}

/* ----------- Ìîáèëüíàÿ àäàïòàöèÿ ----------- */
@media (max-width: 900px) {
  .flex-cards { gap: 12px; }
  .thesis-card { width: 45vw; min-width: 130px; transform: none !important; box-shadow: 0 2px 12px rgba(212,0,0,0.06); z-index: auto; }
}
@media (max-width: 700px) {
  .flex-cards { flex-direction: column; align-items: center; }
  .thesis-card { width: 93vw; margin-bottom: 16px; }
}

/* Ïðîãðàììà êóðñà — êàðòî÷êè ïî íåäåëÿì */
.weeks-section {
  background: #fff;
  max-width: 700px;
  margin: 0 auto 60px auto;
  padding: 0;
}
.weeks-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
  padding-top: 0;
}
.week-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
  padding: 44px 32px 34px 32px;
  margin-bottom: 36px;
  text-align: left;
  border-left: none;
  position: relative;
}
.week-card {
  background: #faf9f9;
  border-radius: 20px;
  box-shadow: 0 4px 22px rgba(212,0,0,0.06);
  padding: 36px 32px 30px 32px;
  margin-bottom: 32px;
  text-align: left;
  border-left: 8px solid #d40000; /* Ïî óìîë÷àíèþ êðàñíàÿ */
  transition: box-shadow .27s, transform .27s, background .18s;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

/* Èíäèâèäóàëüíûå öâåòà äëÿ êàæäîé íåäåëè */
.week1 { border-left: 8px solid #d40000; }       /* Êðàñíàÿ */
.week2 { border-left: 8px solid #ececec; }       /* Ñâåòëî-ñåðàÿ */
.week3 { border-left: 8px solid #2d7be4; }       /* Ñèíÿÿ */
.week4 { border-left: 8px solid #ffe040; }       /* Æ¸ëòàÿ */

.week-card h3 {
  color: #d40000;
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 22px;
  font-weight: bold;
}
.week-card ul {
  margin-left: 18px;
  margin-bottom: 10px;
  padding-left: 15px;
}
.week-card b {
  color: #d40000;
  font-weight: bold;
}
.week-card:hover {
  box-shadow: 0 12px 48px rgba(212,0,0,0.11);
  background: #fff;
  transform: translateY(-3px) scale(1.01);
}

/* Òàðèôû */
.tariffs-section {
  background: #f3f3f3;
  padding: 60px 20px;
  text-align: center;
}
.tariff-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
}
.tariff-card {
  background: white;
  border-radius: 12px;
  padding: 30px 20px;
  width: 280px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.07);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow .25s, transform .25s;
}
.tariff-card:hover {
  box-shadow: 0 10px 32px rgba(212,0,0,0.10);
  transform: translateY(-6px) scale(1.02);
}
.tariff-title {
  background: #eee;
  padding: 10px;
  font-weight: bold;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 18px;
}
.tariff-price {
  font-size: 28px;
  color: #d40000;
  font-weight: bold;
  margin-bottom: 20px;
}
.tariff-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
  color: #333;
  text-align: left;
  width: 100%;
}
.tariff-card li {
  margin-bottom: 6px;
}
.tariff-card a {
  display:inline-block;
  background:#d40000;
  color:#fff;
  padding:12px 25px;
  border-radius:6px;
  font-weight:bold;
  text-decoration:none;
  margin-top:auto;
  transition: background .3s;
}
.tariff-card a:hover {
  background:#a80000;
}
@media (max-width: 1000px) {
  .tariff-grid {
    flex-direction: column;
    align-items: center;
  }
}
@media (max-width: 480px) {
  .tariff-card {
    width: 90%;
  }
}
@media (max-width: 700px) {
  .weeks-section {
    max-width: 99vw;
    padding: 0 1vw;
  }
  .weeks-title {
    font-size: 22px;
    padding-top: 20px;
  }
  .week-card {
    padding: 18px 8px 16px 10px;
    border-radius: 12px;
  }
}
@media (max-width: 600px) {
  section {
    padding: 30px 5px;
  }
  .tariff-card {
    width: 96vw;
    min-width: 0;
  }
}

.format-inner, .author-inner {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 34px 0 rgba(70,110,180,0.07);
  padding: 34px 26px 26px 26px;
  text-align: left;
}
.course-format-block h2 {
  font-size: 26px;
  color: #2560a9;
  margin-bottom: 18px;
  text-align: left;
}
.format-text p {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 19px;
  line-height: 1.56;
}

.about-author-block {
  background: linear-gradient(95deg, #f9f8ef 50%, #f1ece1 100%);
  padding: 48px 0 42px 0;
}
.author-inner {
  box-shadow: 0 8px 34px 0 rgba(180,140,60,0.08);
  display: flex;
  flex-direction: column;
}
.author-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
}
.author-photo {
  width: 106px;
  height: 106px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(205,160,60,0.14);
  background: #ece7d8;
  flex-shrink: 0;
}
.about-author-block h2 {
  font-size: 26px;
  color: #c69b32;
  margin-bottom: 14px;
  margin-top: 2px;
  text-align: left;
}
.author-text p {
  margin: 0 0 14px 0;
  font-size: 18px;
  line-height: 1.56;
  color: #3b3119;
}
.about-author-block b {
  color: #b47a08;
}

@media (max-width: 700px) {
  .author-header { flex-direction: column; align-items: flex-start; gap: 16px;}
  .author-photo { width: 76px; height: 76px; }
  .format-inner, .author-inner { padding: 18px 8px 12px 8px; border-radius: 12px; }
  .format-text p, .author-text p { font-size: 16px; }
}

/* Ôóòåð */
footer {
  background:#111;
  color:#ccc;
  padding:40px 20px;
  text-align:center;
  font-size: 15px;
}
footer a {
  color:#ccc;
  text-decoration:none;
  margin: 0 10px;
}
footer a:hover {
  text-decoration: underline;
}
@media (max-width: 480px) {
  .tariffs-section {
    padding: 40px 10px;
  }

  .tariff-card {
    width: 90%;
    padding: 20px 15px;
  }

  .tariff-title {
    font-size: 16px;
    padding: 8px;
  }

  .tariff-price {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .tariff-card a {
    padding: 10px 20px;
    font-size: 14px;
  }

  .tariff-card ul {
    text-align: center;
  }
}
