.page {
  min-inline-size: 320px;
  color: black;
  font-family: "Inter", sans-serif;
}

.main {
  font-family: "Inter", sans-serif;
  margin: 0 auto;
}

.header {
  min-block-size: 150px;
  text-align: center;
  margin-top: 25px;
}

@media (min-width: 590px) and (max-width: 1200px) {
  .header {
    min-block-size: 100px;
    margin-top: 20px;
  }
}

@media (max-width: 580.5px) {
  .header {
    min-block-size: 80px;
    margin-top: 15px;
  }
}

.header__title {
  font-family: "Inter", sans-serif;
  font-style: bold;
  font-weight: 700;
  line-height: 0.83;
  color: #0a3966;
  text-shadow: 4px 4px 0px #b2d8f1;
  align-self: center;
  font-size: clamp(7.25rem, 7.0115rem + 1.0178vw, 7.5rem);
}

@media (min-width: 590px) and (max-width: 1200px) {
  .header__title {
    font-size: clamp(4.25rem, 7.0115rem + 1.0178vw, 4.5rem);
  }
}

@media (max-width: 580.5px) {
  .header__title {
    font-size: clamp(2.25rem, 7.0115rem + 1.0178vw, 2.5rem);
  }
}

.history__conteiner {
  display: flex;
}

@media (min-width: 590px) and (max-width: 1200px) {
  .history__conteiner {
    flex-direction: column;
  }
}

@media (max-width: 580.5px) {
  .history__conteiner {
    flex-direction: column;
  }
}


.history__image_conteiner {
  width: 450px;
  height: 300px;
  padding: 15px;
}

@media (min-width: 590px) and (max-width: 1200px) {
  .history__image_conteiner {
    width: 700px;
    height: 400px;
    padding: 15px;
    margin: 0 auto;
  }
}

@media (max-width: 580.5px) {
  .history__image_conteiner {
    width: 280px;
    height: 200px;
    padding: 10px;
    margin: 0 auto;
  }
}

.history__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 15px;
}

.history__list-item {
  font-size: 16px;


}

@media (min-width: 590px) and (max-width: 1200px) {
  .history__list-item {
    font-size: 14px;
    padding: 0px 40px;
  }
}

@media (max-width: 580.5px) {
  .history__list-item {
    font-size: 12px;
    padding: 0px 20px;
  }
}

.intro__text {
  margin-top: 25px;
  padding: 20px;
}

@media (min-width: 590px) and (max-width: 1200px) {
  .intro__text {
    font-size: 14px;
    padding: 0px 40px;
  }
}

@media (max-width: 580.5px) {
  .intro__text {
    font-size: 12px;
  }
}

.congratulation,
.alumnimeeting,
.celebration {
  width: 350px;
  height: 380px;
  border-radius: 30px;
  padding: 20px 30px 20px;
  background-color: white;
  margin-top: 25px;
  position: relative;
  font-size: 16px;
  box-shadow:
   0 8px 20px rgba(178, 216, 241, 0.4),
    0 15px 35px rgba(178, 216, 241, 0.3),
    0 0 25px rgba(178, 216, 241, 0.2);
  animation: pulseYellowShadow 3s ease-in-out infinite;
}

@media (min-width: 590px) and (max-width: 1200px) {

  .congratulation,
  .alumnimeeting,
  .celebration {
    width: 640px;
    height: 380px;
    margin: 25px auto;
  }
}

@media (max-width: 580.5px) {

  .congratulation,
  .alumnimeeting,
  .celebration {
    min-width: 280px;
    width: 100%;
    height: 420px;
    margin: 25px auto;
  }
}

.congratulation::after,
.alumnimeeting::after,
.celebration::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 10%;
  right: 10%;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
  rgba(30, 130, 202, 0.5) 0%,
  rgba(30, 130, 202, 0) 70%);
  z-index: -1;
  animation: pulseYellowGlow 3s ease-in-out infinite;
}

@keyframes pulseYellowShadow {
0%,
  100% {
    box-shadow:
      0 8px 20px rgba(30, 130, 202, 0.3),
      0 15px 35px rgba(30, 130, 202, 0.2);
  }

  50% {
    box-shadow:
      0 12px 30px rgba(30, 130, 202, 0.6),
      0 25px 50px rgba(30, 130, 202, 0.5),
      0 0 40px rgba(30, 130, 202, 0.4);
  }
}


@keyframes pulseYellowGlow {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.95);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

.congratulation__header,
.alumnimeeting__header,
.celebration__header{
  display: flex;
  text-align: center;
  justify-content: space-around;
  font-family: "Inter", sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #0a3966;
  line-height: 0.83;
  margin-bottom: 25px;
  margin-top: 25px;
}

.congratulation__content_list,
.celebration__content_list,
.image__content_list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.content__list_item {
  display: flex;
  flex-direction: column;
  font-size: 15px;
}

@media (min-width: 590px) and (max-width: 1200px) {
  .content__list_item {
    padding: 0 40px;
    font-size: 13px;
  }
}

@media (max-width: 580.5px) {
  .content__list_item {
    padding: 0 20px;
    font-size: 12px;
  }
}

.congratulation__content_link {
  color: #0a3966;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 2px;
}

.congratulation__content_link:hover {
  color: #d9b504;
}
.congratulation__content_link:focus {
  outline: 2px solid #0a3966; 
  outline-offset: 2px;
  border-bottom-color: #0a3966;
  color: #0a3966; 
  
}

.congratulation__content_link:active {
  color: #072a4d;
  }

.congratulation__content_link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #0066cc;
  transition: width 0.3s ease;
}

.congratulation__content_link:hover::after {
  width: 100%;
}

.wrapper-1 {
  display: flex;
  justify-content: space-around;
  gap: 15px;
  margin-top: 25px;
}

@media (min-width: 590px) and (max-width: 1200px) {
  .wrapper-1 {
    margin: 0 auto;
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 580.5px) {
  .wrapper-1 {
    flex-direction: column;
  }
}



.content__visual {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0 auto;
  max-width: 1200px;
  margin-top: 50px;
}

@media (min-width: 590px) and (max-width: 1200px) {
  .content__visual {
    display: grid;
    grid-template-columns: 1fr;
    margin: 0;
  }
}

@media (max-width: 580.5px) {
  .content__visual {
    display: grid;
    grid-template-columns: 1fr;
    margin: 0;
  }
}
.image-title {
  display: flex;
  text-align: center;
  justify-content: space-around;
  font-family: "Inter", sans-serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: #0a3966;
  line-height: 0.83;
  margin-bottom: 25px;
  margin-top: 25px;
}

.images-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 25px;
}

@media (min-width: 590px) and (max-width: 1200px) {
  .images-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 580.5px) {
  .images-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.visual-images {
  display: block;
  object-fit: cover;
  object-position: center;
  block-size: 100%;
  inline-size: 100%;
}
.visual-images:hover {
 outline: 3px solid #0a3966;
 transition: all 0.3s ease;
}
.visual-images:focus {
 outline: 3px solid #0a3966;
 transition: all 0.3s ease;
}

.visual__item:first-child,
.visual__item:last-child {
  grid-column-start: span 2;
}

.visual__item:nth-child(2),
.visual__item:nth-child(3) {
  grid-row-start: span 2;
}


.print {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  margin-top: 50px;
  margin-bottom: 150px;
}

.print__title {
  font-family: "Inter", sans-serif;
  text-align: center;
  font-weight: 400;
  line-height: 0.83;
  color: #0a3966;
  text-shadow: 4px 4px 0px #b2d8f1;
  align-self: center;
  font-size: clamp(4.25rem, 4.0115rem + 1.0178vw, 4.5rem);
  margin-bottom: 15px;
}

@media (min-width: 590px) and (max-width: 1200px) {
  .print__title {
    font-size: clamp(3.25rem, 2.0115rem + 1.0178vw, 3.5rem);
    text-align: center;
  }
}

@media (max-width: 580.5px) {
  .print__title {
    font-size: clamp(2.25rem, 2.0115rem + 1.0178vw, 2.5rem);
    padding: 10px;
  }
}

.print__subtitle {
  text-align: center;
  color: #0a3966;
  font-size: 24px;
  font-style: bold;
  font-weight: 400;
  margin-bottom: 25px;
}

@media (min-width: 590px) and (max-width: 1200px) {
  .print__subtitle {
    font-size: 18px;
  }
}

@media (max-width: 580.5px) {
  .print__subtitle {
    font-size: 14px;
  }
}

.cards-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
  min-width: 280px;
  width: 100%;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: white;
  width: 1000px;
  max-height: 1500px;
  height: 100%;
  border-radius: 30px;
  padding: 40px;
  font-size: 16px;
  font-style: italic;
  position: relative;
  box-shadow:
    0 8px 20px rgba(178, 216, 241, 0.4),
    0 15px 35px rgba(178, 216, 241, 0.3),
    0 0 25px rgba(178, 216, 241, 0.2);
}

@media (min-width: 590px) and (max-width: 1200px) {
  .card {
    min-width: 520px;
    width: 100%;
  }
}

@media (max-width: 580.5px) {
  .card {
    min-width: 280px;
    width: 100%;
  }
}

.card__image {
  min-width: 260px;
  width: 100%;
  max-height: 1500px;
  min-height: 300px;
  height: 100%;

}


.card::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 5%;
  right: 5%;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
      rgba(178, 216, 241, 0.6) 0%,
      rgba(178, 216, 241, 0) 80%);
  z-index: -1;
}

.card__content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.card__text {
  font-size: 16px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  
}

.card__author {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-style: normal;
  font-size: 16px;
}

.card__author-name {
    display: flex;
    max-width: 850px;
    width: 100%;
    color: #0a3966;
    font-weight: 400;
    font-style: normal;
    justify-content: flex-start;
    font-size: 16px;
}

.card__author-position {
   display: flex;
   justify-content: flex-start;
    max-width: 850px;
    width: 100%;
  font-size: 16px;
}

.admin-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(30, 60, 114, 0.4);
  transition: all 0.3s;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(30, 60, 114, 0.6);
}

.admin-btn svg {
  width: 24px;
  height: 24px;
  color: white;
}

.add-greeting-container {
  text-align: center;
  margin: 30px 0 40px;
  display: none;
}

.admin-mode .add-greeting-container {
  display: block;
}

.delete-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(229, 62, 62, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  transition: all 0.3s;
  z-index: 10;
}

.delete-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.delete-icon:hover {
  background: rgba(197, 48, 48, 0.95);
  transform: scale(1.1);
}

.admin-mode .delete-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-greeting-btn {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  border: none;
  padding: 14px 32px;
  font-size: 18px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(42, 82, 152, 0.4);
  font-weight: 600;
  letter-spacing: 1px;
}

.add-greeting-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 82, 152, 0.6);
  background: linear-gradient(135deg, #1a335e 0%, #244780 100%);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s;
}

.modal-content {
  background: white;
  border-radius: 20px;
  padding: 30px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: slideUp 0.4s;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #eef2f7;
}

.modal-header h3 {
  margin: 0;
  color: #1e3c72;
  font-size: 24px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 36px;
  color: #888;
  cursor: pointer;
  line-height: 1;
  padding: 0 5px;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #1e3c72;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-input,
.modal-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #d1d9e6;
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  transition: border-color 0.3s;
}

.modal-input:focus,
.modal-textarea:focus {
  outline: none;
  border-color: #1e3c72;
  box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.15);
}

.modal-textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
}

.modal-error {
  color: #e53e3e;
  font-size: 14px;
  min-height: 20px;
  text-align: center;
}

.modal-submit {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 17px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  align-self: flex-end;
  margin-top: 10px;
}

.modal-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(30, 60, 114, 0.4);
  background: linear-gradient(135deg, #1a335e 0%, #244780 100%);
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2d3748;
  font-size: 16px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0; 
    transform: translateY(30px);
  }
  to { 
    opacity: 1; 
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .admin-btn {
    width: 45px;
    height: 45px;
    top: 15px;
    right: 15px;
  }
  
  .admin-btn svg {
    width: 20px;
    height: 20px;
  }
  
  .modal-content {
    padding: 25px;
    margin: 15px;
  }
  
  .modal-header h3 {
    font-size: 22px;
  }
  
  .add-greeting-btn {
    padding: 12px 28px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .admin-btn {
    width: 40px;
    height: 40px;
  }
  
  .delete-icon {
    width: 35px;
    height: 35px;
  }
  
  .delete-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .modal-content {
    padding: 20px;
  }
  
  .modal-input,
  .modal-textarea {
    padding: 12px 16px;
    font-size: 15px;
  }
  
  .modal-submit {
    width: 100%;
    padding: 14px;
  }
  
  .add-greeting-btn {
    padding: 12px 24px;
    font-size: 15px;
  }
}


#logoutBtn {
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  margin-top: 15px;
}

#logoutBtn:hover {
  background: linear-gradient(135deg, #c53030 0%, #9b2c2c 100%);
}