
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

body {
    background: #f3f4f6;
    color: #333;
}

.hero {
    background-color: #743089;
    padding: 30px 40px;
    color: white;
}

.header-flex {
     position: relative;
    display: flex;
    align-items: center;
    justify-content: center;             
}


.header-center {
    flex: 1;
    text-align: center;
    font-family: "Roboto", sans-serif;
}
.subtitle {
    margin-top: 13px;    
    font-size: 20px;    
     font-weight: 600;
    opacity: 0.9;       
}
.hero h1 {
    font-size: 42px;
    font-weight: 700;
}
.Logo-spsdtt {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    height: 90px;   /* alebo 80px */
    width: auto;
}

.container {
    max-width: 1600px;
    margin: -60px auto 0;
    padding: 0 20px 60px; 
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    margin-top: 100px;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.card-link.obkec {
    grid-column: 1 / -1;
    justify-self: center;     
}

.card {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px;
    min-height: 150px;

    display: flex;
    flex-direction: column;
    justify-content: center;   
    align-items: center;      

    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-obkec {
    transition: none;
}

.card-obkec:hover {
    transform: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
S
.card h3 {
    font-size: 22px;
}
.card-af {
    border: 3px solid #663399;
    border-top: 9px solid #663399;
}

.card-af h3 {
    color: #663399;
    font-size: 25px;
}

.card-hm {
    border: 3px solid #663399;
    border-top: 9px solid #663399;
}

.card-hm h3 {
    color: #663399;
    font-size: 25px;
}

.card-nz {
    border: 3px solid #663399;
    border-top: 9px solid #663399;
}

.card-nz h3 {
    color: #663399;
    font-size: 25px;

}

.card-field {
    border: 3px solid #663399;
    border-top: 9px solid #663399;
}

.card-field h3 {
    color: #663399;
    font-size: 25px;

}

.card-obkec {
    max-width: 1100px;
    margin: 40px auto;
    padding: 35px 40px;

    background-color: white;        
    border: 3px solid #663399;  
    border-top: 9px solid #663399;     
    border-radius: 16px;

    text-align: center;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card-obkec h1 {
    margin-bottom: 15px;
    color: #663399;
    font-size: 30px;
}

.card-obkec p {
    color: #333;
    font-size: 17px;
    line-height: 1.6;
}

@media (max-width: 800px) {
    .hero h1 {
        font-size: 32px;
    }

    .cards {
        margin-top: 60px;
    }
    .footer-content{
        flex-direction: column;
    }
    .cards{
        display: flex;
        flex-direction: column;
    }
    .logo-skoly{
        margin-left: 5px;
        
    }
    .Logo-spsdtt{
        height: 50px;
        right: 10px;
    }
    .header-center{
        margin-right: 10%;
    }
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}


.footer {
  background-color: #5e2b7a; 
  color: white;
  width: 100%;
  padding: 40px 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;

  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-section h4 {
  margin-bottom: 12px;
  font-size: 20px;
  font-family: "Roboto", sans-serif;
  font-weight: 800;
}

.footer-section p {
  margin: 6px 0;
  font-size: 15px;
  font-family: "Roboto", sans-serif;
}

