/* === СТИЛІ ДЛЯ ТЕХНО-ДАШБОРДУ: ЗАГОЛОВОК === */
:root {
    --energy-blue: #3a86ff;
    --panel-dark: #0a0e15;
    --neon-glow: 0 0 12px rgba(58, 134, 255, 0.6);
    --text-glow: 0 0 8px rgba(58, 134, 255, 0.8);
}

.ESTZP-dashboard-header {
    position: relative;
    padding: 0.5rem 1rem;
    text-align: center;
    background: radial-gradient(ellipse at center, #0a0f1a 0%, #03060a 100%);
    overflow: hidden;
    border-radius: 15px;
    font-family: 'Orbitron', sans-serif;
    border-top: 4px solid #3a86ff;     /* 🔋 Катод — яскраво-зелений */
    border-bottom: 4px solid #00ff99;  /* 🔋 Анод — синій */
    box-shadow:
        0 -1px 10px #3a86ff,  /* верхнє світіння */
        0 1px 10px #00ff99;   /* нижнє світіння */
}


.dashboard-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
            0deg,
            rgba(58, 134, 255, 0.03) 0px,
            rgba(58, 134, 255, 0.03) 1px,
            transparent 1px,
            transparent 3px
    );
    z-index: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.dashboard-title {
    color: #00ffe1;
    text-shadow: 0 0 4px #1de9b6, 0 0 12px #3a86ff;
    background: rgba(10, 14, 21, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(58, 134, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
    padding: 1rem 2rem;
    font-size: 1.5rem;
    line-height: 1.5;
}

.dashboard-title div:first-child {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    text-transform: uppercase;
    animation: glowText 2s ease-in-out infinite alternate;
}

.dashboard-title div:last-child {
    font-size: clamp(1rem, 3vw, 1.6rem);
    color: #8eeaff;
    opacity: 0.95;
}

.indicators {
    display: flex;
    gap: 3rem;
    justify-content: center;
}

.indicator {
    font-size: 2rem;
    color: var(--energy-blue);
    animation: indicatorPulse 1.8s ease-in-out infinite;
    text-shadow: 0 0 6px #3a86ff;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.indicator:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px #3a86ff);
}


.top-energy-line,
.pulse-line {
  width: 100%;
  position: relative;
  display: block;
}

.top-energy-line {
  height: 6px;
  margin-bottom: 0.5rem;
}

.glow-line {
  stroke: #00ffe1;
  stroke-width: 1;
  stroke-dasharray: 12 6;              /* разом 18 */
  stroke-linecap: round;
  animation: currentFlow 1.8s linear infinite, glowPulse 3s ease-in-out infinite;
  filter: drop-shadow(0 0 5px #00ffe1);
  opacity: 0.9;
}

.pulse-wave {
  width: 100%;
  height: 24px;
  margin-top: 0.5rem;
  z-index: 2;
  position: relative;
  filter: drop-shadow(0 0 6px lime);
}

.animated-stroke {
  animation: flowSine 7s linear infinite;
}



/* === Анімації === */
@keyframes currentFlow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: 18; }       /* кратне dasharray = плавний цикл */
}

@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 3px #00ffe1); }
  50%      { filter: drop-shadow(0 0 8px #00ffe1); }
}

@keyframes glowText {
    from {
        text-shadow: 0 0 10px #00ffc8;
    }
    to {
        text-shadow: 0 0 20px #00ffe1, 0 0 30px #00aaff;
    }
}

@keyframes indicatorPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
        text-shadow: 0 0 6px #3a86ff;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
        text-shadow: 0 0 12px #3a86ff;
    }
}


@keyframes pulseMove {
  0%   { transform: translateX(-3%); }
  100% { transform: translateX(3%); }
}

@keyframes flowSine {
  0%   { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}


/* === АДАПТАЦІЯ === */
@media (max-width: 768px) {
    .ESTZP-dashboard-header {
        padding: 0.5rem 0.5rem;
        border-radius: 12px;
    }

    .dashboard-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }

    .dashboard-title {
        padding: 1rem;
        border-radius: 10px;
        font-size: 1.3rem;
        max-width: 100%;
    }

    .dashboard-title div:first-child {
        font-size: 1.5rem;
        letter-spacing: 0.5px;
    }

    .dashboard-title div:last-child {
        font-size: 1.1rem;
        letter-spacing: 0.3px;
    }

    .indicators {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .indicator {
        font-size: 1.7rem;
        text-shadow: 0 0 4px #3a86ff;
    }

    .pulse-line {
        height: 20px;
        margin-top: 0.5rem;
    }
}


/* === СЕКЦІЯ МОНІТОРИНГУ ЕНЕРГОСИСТЕМИ === */

.power-status-grid {
    display: flex;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.6rem;
    padding: 0.4rem 1rem;
    margin: 1rem auto;
    max-width: 1080px;
    min-height: 1.2cm;
    background: linear-gradient(180deg, rgba(10, 14, 21, 0.9), rgba(5, 8, 14, 0.95));
    box-shadow: inset 0 0 8px rgba(58, 134, 255, 0.15), 0 0 12px rgba(0, 255, 204, 0.03);
    border: 1px solid rgba(58, 134, 255, 0.12);
    border-radius: 6px;
    backdrop-filter: blur(2px);
    z-index: 2;
}

/* === СТИЛІ ДЛЯ КОМІРОК === */
.status-widget {
    width: 100%;
    height: 52px;
    padding: 0.3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    box-shadow: 0 0 3px rgba(0, 255, 255, 0.04);
    font-family: 'Orbitron', sans-serif;
    transition: 0.3s ease;
}

/* === ПІДСВІТКА У СТАНІ ПОПЕРЕДЖЕННЯ === */
.status-widget.warning {
    background: rgba(255, 0, 0, 0.08);
    border-color: #ff1744;
    box-shadow: 0 0 6px rgba(255, 23, 68, 0.6);
}

/* === ІКОНОЧНІ КОЛЬОРИ === */
.icon-temp    { color: #ff6f00; } /* Помаранчевий */
.icon-freq    { color: #42a5f5; } /* Блакитний */
.icon-power   { color: #00e676; } /* Яскраво-зелений */
.icon-voltage { color: #3a86ff; } /* Синій */
.icon-current { color: #00bcd4; } /* Ціан */
.icon-light   { color: #ffeb3b; } /* Жовтий */

/* === ВМІСТ === */
.status-label {
    color: #e0f7fa;
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.2rem;
}

.status-label i {
    font-size: 0.85rem;
    vertical-align: middle;
}

.status-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1de9b6;
    font-family: 'VT323', monospace;
    text-shadow: 0 0 6px #00ffc8;
    line-height: 1;
}

.status-unit {
    font-size: 0.75rem;
    color: #9ab;
    margin-top: 0.2rem;
}

/* === СТАН СИСТЕМИ === */
.status-indicator .status-led {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0.25rem auto;
    background: #1de9b6;
    box-shadow: 0 0 8px #1de9b6;
    animation: pulseLed 2s ease-in-out infinite;
}

.status-state-label {
    font-size: 0.75rem;
    color: #cceeff;
    margin-top: 0.1rem;
}

/* === Анімація пульсації індикатора === */
@keyframes pulseLed {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.2); }
}

/* === ADAPTIVE === */
@media (max-width: 768px) {
    .power-status-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem 0.7rem; /* між блоками більше повітря */
        padding: 0.4rem;
        justify-items: center;
    }

    .status-widget {
        width: 100%;
        max-width: 110px;
        height: 45px;
        padding: 0.3rem 0.2rem; /* менше внутрішній відступ */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .status-label {
        font-size: 0.6rem;
        gap: 0.25rem;
        margin-bottom: 0.05rem;
    }

    .status-label i {
        font-size: 0.7rem;
    }

    .status-display {
        font-size: 1.05rem;
        line-height: 1;
    }

    .status-unit {
        font-size: 0.6rem;
        margin-top: 0.05rem;
    }

    .status-indicator .status-led {
        width: 7px;
        height: 7px;
        margin: 0.1rem auto;
    }

    .status-state-label {
        font-size: 0.6rem;
    }
}


/* Сітка викладачів */
.ESTZP-teachers-section {
    padding: 4rem 1rem;
    background: #f8f9fa;
}

.ESTZP-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch; /* найважливіше — всі картки однакової висоти */
}


/* Стилі карток */
.ESTZP-teacher-card {
    --accent-color: #3a86ff;
    --bg-color: #ffffff;
    --text-dark: #2b2d42;
    --text-light: #8d99ae;

    background: var(--bg-color);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 43, 94, 0.1),
    inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    height: 100%;
    display: flex;
    max-width: 320px; /* або 300px — якщо хочеш вузькі */
    margin: 0 auto;
    flex-direction: column;
}


.ESTZP-card-inner {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ESTZP-photo-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    width: 100%;
}

.ESTZP-teacher-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ESTZP-tech-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.15) 0%, rgba(0, 43, 94, 0.4) 100%);
    mix-blend-mode: multiply;
}

.ESTZP-card-content {
    padding: 1.2rem 1.2rem 1.4rem;
    position: relative;
    z-index: 2;
    background: var(--bg-color);
}

.ESTZP-teacher-name {
    color: var(--text-dark);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    min-height: 3.6rem;
    display: flex;
    align-items: center;
}

.ESTZP-teacher-name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

/* Уніфікований стиль рядка з іконкою */
.ESTZP-line {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-bottom: 0.6rem;
}

.ESTZP-line-icon {
    width: 24px;
    text-align: center;
    margin-top: 0.25rem;
    font-size: 1.2rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.ESTZP-line-text {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: left;
    line-height: 1.5;
}


/* Технічні декоративні елементи */
.ESTZP-tech-decoration {
    position: absolute;
    top: -20px;
    right: -30px;
    width: 120px;
    height: 120px;
    opacity: 0.15;
    z-index: 1;
}

.ESTZP-circuit-line {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed var(--accent-color);
    border-radius: 50%;
}

.ESTZP-dots-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--accent-color) 2px, transparent 2px);
    background-size: 15px 15px;
}

/* Анімації та ефекти */
.ESTZP-teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0, 43, 94, 0.2),
    inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.ESTZP-teacher-card:hover .ESTZP-teacher-photo {
    transform: scale(1.05);
}

.ESTZP-teacher-card:hover .ESTZP-tech-decoration {
    animation: rotateCircuit 15s linear infinite;
}

@keyframes rotateCircuit {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


/* Центрування логотипу */
.ESTZP-logo-wrapper {
    grid-column: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.ESTZP-logo {
    width: 320px;
    height: 320px;
    object-fit: contain;
    border-radius: 50%;
    border: 3px solid #002b5e;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Секція про циклову комісію */
.ESTZP-about-section {
    background: #ffffff;
    padding: 4rem 1rem;
}

.ESTZP-about-container {
    max-width: 960px;
    margin: 0 auto;
    text-align: justify;
    font-size: 1.05rem;
    color: #2b2d42;
    line-height: 1.5;
}

.ESTZP-about-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #002b5e;
}

.ESTZP-about-container p {
    font-size: 1.3rem;
    text-indent: 2rem;
    margin-bottom: 0.4rem;
}

/* Виправлення переносів */
p, li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Специфічні випадки з тире */
li:has(> strong) {
    hyphens: none;
}


/* === СЕКЦІЇ З КОЛЬОРАМИ І ТЕКСТОВИМИ ЗМІННИМИ === */
.section-1 {
    background-color: #C8D8E7;
    --text-main: #0f1a22;
    --text-title: #002b5e;
    --text-strong: #134878;
    --divider-line: #b4c8d9;
}

.section-2 {
    background-color: #A7C3D1;
    --text-main: #112430;
    --text-title: #003459;
    --text-strong: #215f85;
    --divider-line: #9ab7c8;
}

.section-3 {
    background-color: #88AFBA;
    --text-main: #10272d;
    --text-title: #00415c;
    --text-strong: #2d7086;
    --divider-line: #7ca3ae;
}

.section-4 {
    background-color: #63949E;
    --text-main: #eaf3f5;
    --text-title: #ffffff;
    --text-strong: #d8f2ff;
    --divider-line: #7aa6ae;
}

.section-5 {
    background-color: #256279;
    --text-main: #f3f9fc;
    --text-title: #ffffff;
    --text-strong: #d0ecff;
    --divider-line: #69a9c0;
}

.section-6 {
    background-color: #03152D;
    --text-main: #f1f5f9;
    --text-title: #ffffff;
    --text-strong: #ffffff;
    --divider-line: #728394;
}


/* === УНІФІКОВАНІ СТИЛІ ДЛЯ ІНФОРМАЦІЙНИХ СЕКЦІЙ === */
.ESTZP-info-section {
    padding: 2rem 1rem;
    font-size: 1.15rem;
    color: var(--text-main);
    line-height: 1.5;
    position: relative;
}

.ESTZP-info-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 14px;
    background: linear-gradient(to right,
    rgba(255, 255, 255, 0.9),
    var(--divider-line),
    rgba(255, 255, 255, 0.9));
    opacity: 1;
    z-index: 2;
    pointer-events: none;
    border-radius: 999px;
}



/* Остання секція — без закруглення */
.ESTZP-info-section:last-of-type::after {
    border-radius: 0;
}


/* Коли секція активна (видима) */
.ESTZP-info-section.active {
  opacity: 1;
  transform: translateY(0);
}

/* === ВНУТРІШНІ ЕЛЕМЕНТИ === */
.ESTZP-info-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: justify;
}

.ESTZP-info-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-title);
    margin: 1rem;
}

.ESTZP-info-container p {
    text-indent: 2rem;
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.ESTZP-info-container strong {
    color: var(--text-strong);
    font-weight: 600;
}


/* === СПИСКИ === */
.ESTZP-info-list {
    margin: 1.5rem 0 2rem;
    padding-left: 0;
    list-style: none;
}

.ESTZP-info-list li {
    position: relative;
    padding-left: 2.2rem;
    text-align: justify;
    text-indent: 0;
    line-height: 1.8;
    color: var(--text-main);
}

.ESTZP-info-list li::before {
    content: "📌";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1rem;
    color: var(--text-strong);
}


/* === СІТКИ ЗОБРАЖЕНЬ === */
/* === СЕКЦІЯ 1 === */
.grid-sec1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.grid-sec1 img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.center-sec1 {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.center-sec1 img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* === СЕКЦІЯ 2 === */
.row-sec2 {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
}

.row-sec2 img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* === СЕКЦІЯ 3 === */
.grid-sec3 {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2rem;
    margin-top: 2.5rem;
}

.grid-sec3 .ESTZP-photo-wide-grid {
    width: 100%;
    max-width: 1000px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.grid-sec3 .ESTZP-photo-narrow-wrapper {
    display: flex;
    justify-content: center;
}

.grid-sec3 .ESTZP-photo-narrow-wrapper img {
    width: 100%;
    max-width: 350px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* === СЕКЦІЯ 4 === */
.grid-sec4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.grid-sec4 img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.grid-sec4 .ESTZP-photo-wide-wrapper {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.grid-sec4 .ESTZP-photo-wide-wrapper img {
    width: 100%;
    max-width: 700px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* === СЕКЦІЯ 5 === */
.grid-sec5 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-items: center;
    margin-top: 2.5rem;
}

.grid-sec5 img {
    width: 100%;
    max-width: 350px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.grid-sec5 .ESTZP-photo-wide-wrapper {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.grid-sec5 .ESTZP-photo-wide-wrapper img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* === СЕКЦІЯ 6 === */
.row-sec6 {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
}

.row-sec6 img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.grid-sec1,
.grid-sec3,
.grid-sec4,
.grid-sec5,
.row-sec2,
.row-sec6 {
    width: 100%;
    max-width: 1000px; /* або 960px, або 1100px – головне однаково */
    margin-left: auto;
    margin-right: auto;
}


/* === АНІМАЦІЇ ФОТО === */
.ESTZP-photo-grid img,
.ESTZP-photo-grid-custom img,
.row-sec2 img,
.row-sec6 img,
.ESTZP-photo-wide-wrapper img,
.ESTZP-photo-narrow-wrapper img {
  transform: scale(0.95);
  transition: all 0.5s ease-out;
  filter: brightness(0.97) saturate(0.9);
}

/* Анімація появи зображень при скролі */
.ESTZP-info-section img,
.ESTZP-info-section .ESTZP-photo-wide-wrapper img,
.ESTZP-info-section .ESTZP-photo-narrow-wrapper img {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: 0.1s;
}

.ESTZP-info-section.active img,
.ESTZP-info-section.active .ESTZP-photo-wide-wrapper img,
.ESTZP-info-section.active .ESTZP-photo-narrow-wrapper img {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Анімація появи самої секції */
.ESTZP-info-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.ESTZP-info-section.active {
  opacity: 1;
  transform: translateY(0);
}


@media (max-width: 1550px) {
    .ESTZP-teacher-name {
        font-size: 1.4rem;
        text-align: center;
        justify-content: center;
    }

    .ESTZP-logo {
        width: 200px;
        height: 200px;
    }

    .ESTZP-about-container p {
        font-size: 1.2rem;
    }

    .ESTZP-info-container p {
        font-size: 1.2rem;
    }
}


@media (max-width: 768px) {

    .ESTZP-grid-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .ESTZP-teacher-card {
        min-height: auto;
    }

    .ESTZP-photo-container {
        aspect-ratio: 3 / 4;
    }

    .ESTZP-card-content {
        padding: 1.2rem;
    }

    .ESTZP-teacher-name {
        font-size: 1.3rem;
        text-align: center;
        justify-content: center;
    }

    .ESTZP-line {
        display: flex;
        flex-direction: row;
        align-items: center; /* стабілізує вертикальне вирівнювання */
        justify-content: flex-start;
        gap: 0.5rem;
        flex-wrap: nowrap; /* забороняє перенос, усе в ряд */
        text-align: left;
    }

    .ESTZP-line-icon {
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
        margin-top: 0; /* вирівнювання по центру */
    }

    .ESTZP-line-text {
        font-size: 1rem;
        line-height: 1.4;
        flex-grow: 1;
    }


    .ESTZP-logo-wrapper {
        grid-column: span 1;
        padding: 1rem 0;
    }

    .ESTZP-logo {
        width: 180px;
        height: 180px;
    }

    .ESTZP-about-container {
        font-size: 1rem;
        padding: 0 0.5rem;

    }

    .ESTZP-about-title {
        font-size: 1.5rem;
    }

    .ESTZP-about-container p {
        text-indent: 1.2rem;
        font-size: 1rem;
    }


    .ESTZP-info-title {
        font-size: 1.4rem;
    }

    .ESTZP-info-section {
        font-size: 1rem;
        padding: 1rem 0.5rem;
    }

    .ESTZP-info-container p {
        font-size: 1rem;
        text-indent: 1.1rem;

    }

    .grid-sec1,
    .grid-sec4,
    .grid-sec5 {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .row-sec2,
    .row-sec6 {
        flex-direction: column;
        align-items: center;
    }

    .grid-sec3 .ESTZP-photo-wide-grid,
    .grid-sec4 .ESTZP-photo-wide-wrapper img,
    .grid-sec5 .ESTZP-photo-wide-wrapper img,
    .center-sec1 img {
        max-width: 100%;
    }

    .grid-sec3 .ESTZP-photo-narrow-wrapper img {
        max-width: 90%;
    }

    .grid-sec1 img,
    .grid-sec4 img,
    .grid-sec5 img,
    .row-sec2 img,
    .row-sec6 img {
        max-width: 90%;
    }

    .ESTZP-info-section::after {
        height: 7px;
    }


}
