@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --yellow: #f2cf62;
    --yellow-light: #fff7df;
    --cream: #fffdf7;
    --dark: #343426;
    --text: #696958;
    --green: #66794b;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--dark);
}

a {
    color: inherit;
    text-decoration: none;
}

.header {
    width: 100%;
    min-height: 88px;
    padding: 0 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0eadb;
    background: rgba(255, 253, 247, 0.95);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 15px 15px 15px 5px;
    background: var(--yellow);
    color: #383621;
    font-family: 'Manrope', sans-serif;
    font-size: 32px;
    font-weight: 800;
}

.logo-name {
    font-family: 'Manrope', sans-serif;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 2px;
}

.header-login {
    display: inline-flex;
    gap: 18px;
    align-items: center;
    padding: 13px 20px;
    border: 1px solid #e8dfc9;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.25s;
}

.header-login:hover {
    background: var(--yellow-light);
    border-color: var(--yellow);
}

.welcome {
    min-height: 650px;
    padding: 65px 10% 75px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 35px;
    overflow: hidden;
}

.welcome-content {
    max-width: 610px;
    position: relative;
    z-index: 1;
}

.eyebrow,
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    letter-spacing: 1.8px;
    font-weight: 700;
    color: #77724f;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9caa69;
}

h1,
h2 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    letter-spacing: -2px;
}

h1 {
    margin-top: 30px;
    font-size: clamp(42px, 5vw, 67px);
    line-height: 1.16;
}

h1 span {
    color: #b89a37;
}

.description {
    max-width: 460px;
    margin-top: 25px;
    font-size: 16px;
    line-height: 1.9;
    color: var(--text);
}

.actions {
    display: flex;
    align-items: center;
    gap: 27px;
    flex-wrap: wrap;
    margin-top: 35px;
}

.primary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 17px 24px;
    background: var(--yellow);
    border: 1px solid var(--yellow);
    border-radius: 13px;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.25s, background 0.25s;
}

.primary-button:hover {
    background: #e9c34e;
    transform: translateY(-2px);
}

.primary-button span {
    font-size: 20px;
}

.text-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
}

.welcome-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 55px;
    color: #817c68;
    font-size: 12px;
}

.heart {
    font-size: 25px;
    color: #b49b4e;
}

.visual {
    min-height: 450px;
    position: relative;
    display: grid;
    place-items: center;
}

.sun {
    width: 340px;
    height: 340px;
    position: absolute;
    border-radius: 50%;
    background: #fff0bc;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(180, 155, 78, 0.23);
    border-radius: 50%;
}

.orbit-one {
    width: 400px;
    height: 400px;
}

.orbit-two {
    width: 470px;
    height: 470px;
}

.main-illustration {
    width: 340px;
    height: 350px;
    position: relative;
    display: grid;
    place-items: center;
}

.illustration-circle {
    width: 220px;
    height: 220px;
    position: relative;
    border-radius: 50%;
    background: #f2d77f;
    overflow: hidden;
}

.plant-stem {
    width: 7px;
    height: 105px;
    position: absolute;
    left: 107px;
    bottom: 40px;
    border-radius: 10px;
    background: var(--green);
    transform: rotate(-3deg);
}

.leaf {
    width: 55px;
    height: 32px;
    position: absolute;
    z-index: 1;
    background: #849769;
    border-radius: 100% 0 100% 0;
}

.leaf-one {
    left: 65px;
    top: 84px;
    transform: rotate(18deg);
}

.leaf-two {
    right: 50px;
    top: 111px;
    transform: rotate(-45deg) scaleX(-1);
    background: #9aab7c;
}

.plant-pot {
    width: 100px;
    height: 70px;
    position: absolute;
    left: 60px;
    bottom: 17px;
    background: #c38b64;
    border-radius: 8px 8px 24px 24px;
}

.flower {
    position: absolute;
    z-index: 2;
    color: #fffdf4;
}

.flower-one {
    top: 8px;
    left: 12px;
    font-size: 52px;
}

.flower-two {
    top: 65px;
    right: 3px;
    font-size: 45px;
    color: #c4a13d;
}

.floating-star {
    position: absolute;
    top: 35px;
    right: 20px;
    color: #b69b43;
    font-size: 44px;
}

.floating-card {
    position: absolute;
    right: -30px;
    bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px 20px;
    background: var(--white);
    border: 1px solid #f1eadb;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(90, 75, 35, 0.08);
}

.mini-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--yellow-light);
    color: #b89a37;
    font-size: 23px;
}

.floating-card strong {
    font-size: 12px;
}

.floating-card p {
    margin-top: 5px;
    font-size: 10px;
    color: var(--text);
}

.visual-caption {
    position: absolute;
    bottom: -8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #77724f;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.caption-line {
    width: 20px;
    height: 1px;
    background: #d9c88f;
}

.about {
    min-height: 160px;
    padding: 35px 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    background: var(--yellow-light);
}

.about-symbol {
    color: #b99c42;
    font-size: 42px;
}

.about p {
    max-width: 520px;
    font-family: 'Manrope', sans-serif;
    font-size: 19px;
    line-height: 1.7;
}

.about strong {
    color: #a68a31;
}

.login-section {
    padding: 80px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.login-section h2 {
    margin-top: 15px;
    font-size: 35px;
}

.login-section p {
    margin-top: 12px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.8;
}

.footer {
    padding: 28px 8%;
    border-top: 1px solid #f0eadb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-logo .logo-mark {
    width: 34px;
    height: 34px;
    font-size: 25px;
}

.footer-logo .logo-name {
    font-size: 15px;
}

.footer > span {
    color: #898675;
    font-size: 11px;
}

@media (max-width: 900px) {
    .welcome {
        padding-left: 6%;
        padding-right: 6%;
        grid-template-columns: 1fr 0.85fr;
    }

    .visual {
        transform: scale(0.85);
    }

    .floating-card {
        right: -5px;
    }
}

@media (max-width: 650px) {
    .header {
        min-height: 75px;
        padding: 0 5%;
    }

    .logo-name {
        font-size: 16px;
        letter-spacing: 1.5px;
    }

    .logo-mark {
        width: 37px;
        height: 37px;
        font-size: 27px;
    }

    .header-login {
        padding: 11px 13px;
        gap: 8px;
        font-size: 12px;
    }

    .welcome {
        padding: 60px 7% 50px;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    h1 {
        font-size: clamp(39px, 10vw, 54px);
        letter-spacing: -1.8px;
    }

    .description {
        font-size: 14px;
    }

    .welcome-note {
        margin-top: 32px;
    }

    .visual {
        min-height: 400px;
        transform: scale(0.88);
        margin: -10px 0;
    }

    .about {
        padding: 35px 7%;
        gap: 15px;
    }

    .about p {
        font-size: 16px;
    }

    .about-symbol {
        font-size: 32px;
    }

    .login-section {
        padding: 60px 7%;
        align-items: flex-start;
        flex-direction: column;
    }

    .login-section h2 {
        font-size: 30px;
    }

    .footer {
        padding: 25px 6%;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 380px) {
    .visual {
        transform: scale(0.76);
        margin: -30px -25px;
    }

    .actions {
        gap: 18px;
    }
}.child-illustration {
    width: 100%;
    height: 450px;
}

.child-illustration .child-image {
    width: 100%;
    max-width: 520px;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.child-illustration .floating-card {
    z-index: 2;
    right: 0;
    bottom: 15px;
}

@media (max-width: 650px) {
    .child-illustration {
        height: 360px;
    }

    .child-illustration .child-image {
        max-width: 100%;
    }
}/* BALQADAM кіру бетінің стилі */

.login-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.login-top {
    text-align: center;
    margin-bottom: 25px;
}

.login-top .login-child {
    display: block;
    width: 180px;
    height: 180px;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto 12px;
}

.login-top h1 {
    font-size: 32px;
    margin: 10px 0;
}

.login-top p {
    margin: 0;
}

.role-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 25px auto;
}

.role-btn {
    padding: 14px 30px;
    border: 1px solid #ead8a7;
    border-radius: 14px;
    background: #fffaf0;
    cursor: pointer;
    font-size: 16px;
}

.role-btn.active {
    background: #f3d477;
    border-color: #e6c15e;
}

.login-card {
    max-width: 420px;
    margin: 0 auto;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #f0e4c8;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(100, 75, 25, 0.08);
}

.login-card label {
    display: block;
    margin: 14px 0 8px;
    font-weight: 600;
}

.login-card input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #e8dfcb;
    border-radius: 12px;
    font-size: 15px;
}

.full-btn {
    width: 100%;
    margin-top: 22px;
}

.login-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

@media (max-width: 600px) {
    .login-page {
        padding: 20px 16px 40px;
    }

    .login-top .login-child {
        width: 140px;
        height: 140px;
    }

    .login-top h1 {
        font-size: 26px;
    }

    .login-card {
        padding: 22px;
    }
}/* BALQADAM — ата-ана кабинеті */

.parent-body {
    background: #fffaf0;
    color: #423a2b;
}

.parent-dashboard {
    max-width: 1150px;
    margin: 0 auto;
    padding: 28px 22px 55px;
}

.parent-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 35px;
    background: #fff0c4;
    border: 1px solid #f1dfa9;
    border-radius: 26px;
    overflow: hidden;
}

.parent-welcome h1 {
    font-size: clamp(26px, 4vw, 38px);
    margin: 8px 0 12px;
}

.parent-welcome p {
    line-height: 1.6;
}

.parent-eyebrow {
    color: #94701b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.parent-welcome img {
    width: 145px;
    height: 145px;
    object-fit: contain;
    flex-shrink: 0;
}

.parent-profile {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 24px 0 38px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #f0e4c8;
    border-radius: 20px;
}

.profile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    background: #fff0c4;
    border-radius: 18px;
    font-size: 28px;
}

.parent-profile h2 {
    margin: 0 0 8px;
    font-size: 19px;
}

.parent-profile p {
    margin: 0;
    color: #807767;
    font-size: 14px;
    line-height: 1.5;
}

.profile-link {
    margin-left: auto;
    color: #94701b;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.parent-section > h2 {
    font-size: 25px;
    margin-bottom: 8px;
}

.parent-section > p {
    color: #807767;
    margin-bottom: 22px;
}

.parent-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.parent-menu-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 23px 20px;
    background: #ffffff;
    border: 1px solid #f0e4c8;
    border-radius: 20px;
    color: #423a2b;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.parent-menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(100, 75, 25, 0.08);
}

.parent-menu-item > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #fff4d5;
    border-radius: 15px;
    font-size: 25px;
}

.parent-menu-item strong {
    font-size: 16px;
    line-height: 1.4;
}

.parent-menu-item small {
    color: #807767;
    font-size: 13px;
    line-height: 1.5;
}

.parent-info {
    margin-top: 35px;
    padding: 28px;
    background: #fff4d5;
    border-radius: 22px;
    line-height: 1.8;
}

.parent-info h2 {
    margin-top: 0;
}

.parent-footer {
    padding: 24px 16px;
    text-align: center;
    color: #807767;
    font-size: 13px;
}

@media (max-width: 800px) {
    .parent-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .parent-welcome {
        padding: 24px;
    }

    .parent-welcome img {
        width: 110px;
        height: 110px;
    }

    .parent-menu-item {
        padding: 18px 15px;
    }
}

@media (max-width: 480px) {
    .parent-dashboard {
        padding: 18px 14px 35px;
    }

    .parent-welcome {
        padding: 20px;
        gap: 8px;
    }

    .parent-welcome img {
        width: 85px;
        height: 85px;
    }

    .parent-welcome h1 {
        font-size: 25px;
    }

    .parent-profile {
        flex-wrap: wrap;
        padding: 17px;
    }

    .profile-link {
        margin-left: 76px;
    }

    .parent-menu {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .parent-menu-item {
        padding: 15px 12px;
        border-radius: 16px;
    }

    .parent-menu-item strong {
        font-size: 14px;
    }

    .parent-menu-item small {
        font-size: 12px;
    }

    .parent-section > h2 {
        font-size: 22px;
    }
}
/* Баланың жеке парақшасы */
.child-page {
  max-width: 1100px;
  margin: 35px auto;
  padding: 25px;
  color: #423a2b;
}

.child-page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.child-back {
  color: #94701b;
  text-decoration: none;
  font-weight: 600;
}

.child-label,
.child-eyebrow {
  color: #94701b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.child-card {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 30px;
  background: #fff0c4;
  border: 1px solid #f1dfa9;
  border-radius: 25px;
}

.child-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 190px;
  height: 190px;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
}

.child-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.child-details {
  flex: 1;
  min-width: 0;
}

.child-details h2 {
  margin: 10px 0;
  font-size: 27px;
}

.child-description,
.child-documents p {
  color: #807767;
  line-height: 1.6;
}

.child-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.child-data div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px;
  background: #fff;
  border-radius: 12px;
}

.child-data span {
  color: #807767;
  font-size: 13px;
}

.child-data strong {
  font-size: 14px;
}

.child-documents {
  margin-top: 25px;
  padding: 25px;
  background: #fff;
  border: 1px solid #f0e4c8;
  border-radius: 22px;
}

.child-documents h2 {
  margin-top: 0;
}

.documents-empty {
  margin-top: 20px;
  padding: 18px;
  background: #fffaf0;
  border-radius: 12px;
  font-size: 14px;
}

@media (max-width: 600px) {
  .child-page {
    margin: 15px auto;
    padding: 15px;
  }

  .child-card {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }

  .child-photo {
    width: 140px;
    height: 140px;
    align-self: center;
  }

  .child-details h2 {
    font-size: 22px;
  }

  .child-data {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .child-documents {
    padding: 20px;
  }
}
.document-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  padding: 18px;
  background: #fffaf0;
  border: 1px solid #f0e4c8;
  border-radius: 16px;
}

.document-icon {
  font-size: 30px;
}

.document-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.document-info strong {
  font-size: 14px;
}

.document-info span {
  color: #807767;
  font-size: 12px;
}

.document-open {
  padding: 10px 14px;
  background: #f5d77e;
  border-radius: 10px;
  color: #423a2b;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .document-item {
    flex-wrap: wrap;
  }

  .document-open {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}
.achievement-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    margin-top: 12px;
    background: #fffaf0;
    border: 1px solid #f0e4c8;
    border-radius: 14px;
}

.achievement-item > span {
    font-size: 26px;
}

.achievement-item strong {
    color: #735b2d;
}

.achievement-item p {
    margin-bottom: 0;
    line-height: 1.6;
    color: #665e50;
}
.certificate-gallery {
    margin-top: 24px;
    padding: 22px;
    background: #fffdf7;
    border: 1px solid #f0e4c8;
    border-radius: 18px;
}

.certificate-gallery h3 {
    color: #735b2d;
    margin-top: 0;
}

.certificate-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.certificate-card {
    padding: 12px;
    background: #fffaf0;
    border-radius: 14px;
    text-align: center;
}

.certificate-card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    cursor: zoom-in;
}

.certificate-card p {
    color: #735b2d;
    font-weight: 600;
}

@media (max-width: 520px) {
    .certificate-list {
        grid-template-columns: 1fr;
    }
}

.certificate-gallery {
    margin-top: 24px;
    padding: 22px;
    background: #fffdf7;
    border: 1px solid #f0e4c8;
    border-radius: 18px;
}

.certificate-gallery h3 {
    color: #735b2d;
    margin-top: 0;
}

.certificate-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.certificate-card {
    padding: 12px;
    background: #fffaf0;
    border-radius: 14px;
    text-align: center;
}

.certificate-card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    cursor: zoom-in;
}

.certificate-card p {
    color: #735b2d;
    font-weight: 600;
}

@media (max-width: 520px) {
    .certificate-list {
        grid-template-columns: 1fr;
    }
}
.photo-box {
    height: 230px;
    padding: 8px;
    overflow: hidden;
}

.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}
#ai-button {
    display: flex;
    align-items: center;
    gap: 10px;
}

#ai-button img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
}