@media (max-width: 1100px) {
  header.site-header {
    justify-content: space-between;
    padding: 0 20px;
  }
  header.site-header .desktop-instagram {
    display: none;
  }
  .site-header .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 60;
  }

  .site-header .nav-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--ink);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .site-header .nav-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .site-header .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .site-header .nav-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .site-header .nav-menu {
    display: flex;
    position: fixed;
    top: 88px;
    left: 0;
    width: 100%;
    max-width: 100vw;
    background: var(--paper);
    flex-direction: column;
    align-items: center;
    padding: 35px 24px;
    gap: 22px;
    border-bottom: 1px solid rgba(23, 58, 59, 0.12);
    box-shadow: 0 15px 35px rgba(23, 58, 59, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .site-header .nav-menu.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }

  .site-header .nav-menu a {
    font-size: 13px;
    letter-spacing: 0.1em;
  }

  .site-header .nav-menu .mobile-instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-top: 5px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 85px 7vw;
  }

  .hero h1 {
    max-width: 780px;
  }

  .hero-visual {
    min-height: 650px;
  }

  .portrait-card {
    left: 25%;
    right: 25%;
    top: 8%;
    bottom: 28%;
  }

  .floating-note {
    left: 18%;
    bottom: 26px;
  }

  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-intro {
    float: none;
    margin: 0 0 45px;
    max-width: 600px;
  }

  .definition,
  .about,
  .safety,
  .client-focus {
    grid-template-columns: 1fr;
  }

  .client-focus {
    gap: 65px;
  }

  .definition-art {
    min-height: 480px;
  }

  .about-photo {
    height: 560px;
  }

  .credential {
    right: 20px;
  }

  .education-heading,
  .faq-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .education-heading > p,
  .faq-heading > p {
    max-width: 620px;
  }

  .certificate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .certificate-card:last-child {
    grid-column: 1 / -1;
    width: min(100%, 500px);
    justify-self: center;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 0;
  }

  .step-line {
    display: none;
  }

  .articles {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .contact-card {
    max-width: 450px;
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }

  footer > p {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero {
    height: auto;
    min-height: calc(100vh - 80px);
    padding: 60px 0;
    background-image: 
      linear-gradient(
        to right, 
        rgba(247, 245, 240, 0.95) 0%, 
        rgba(247, 245, 240, 0.85) 45%, 
        rgba(247, 245, 240, 0) 75%
      ),
      url("../img/background.jpeg");
    background-position: 85% center;
    background-size: cover;
  }

  .hero-copy {
    max-width: 440px;
    margin-left: 4vw;
  }

  .hero h1 {
    font-size: clamp(36px, 5vw, 52px);
    line-height: 1.05;
    margin-bottom: 20px;
  }

  .hero-text {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 28px;
  }

  .hero-actions {
    gap: 20px;
  }

  .button.primary {
    padding: 14px 22px;
    font-size: 11px;
  }

  .text-link {
    font-size: 11px;
  }
}

@media (max-width: 680px) {
  .hero {
    height: auto;
    min-height: calc(100vh - 70px);
    padding: 40px 20px 48px;
    background-image: 
      linear-gradient(
        rgba(247, 245, 240, 0.68), 
        rgba(247, 245, 240, 0.68)
      ),
      url("../img/background.jpeg");
    background-position: center center;
    background-size: cover;
  }

  .hero-copy {
    max-width: 100%;
    margin-left: 0;
  }

  .hero h1 {
    font-size: clamp(34px, 8.5vw, 42px);
    line-height: 1.08;
    margin-bottom: 18px;
  }

  .hero-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    /* Dodat malo tamniji ton teksta zbog svetlije pozadine radi bolje čitljivosti */
    color: #2c3e3a; 
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .button.primary {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    padding: 16px 20px;
  }

  .text-link {
    width: 100%;
    justify-content: center;
    padding: 10px 0;
  }
}

@media (max-width: 992px) {
  .hero {
    height: auto;
    min-height: calc(100vh - 70px);
    padding: 60px 0;
    background-position: 75% center;
  }

  .hero-copy {
    max-width: 480px;
    margin-left: 5vw;
  }

  .hero h1 {
    font-size: clamp(40px, 6vw, 56px);
  }
}

@media (max-width: 620px) {
  .site-header {
    height: 72px;
  }

  .brand img {
    width: 155px;
    height: 70px;
  }

  .site-header .nav-menu {
    top: 72px;
  }
  .section {
    padding: 75px 24px;
  }

  .section-heading h2,
  .about h2,
  .safety h2,
  .blog h2,
  .client-focus-intro h2,
  .faq-heading h2 {
    font-size: 38px;
    line-height: 1.08;
  }

  .theme-grid {
    grid-template-columns: 1fr;
  }

  .client-focus {
    gap: 48px;
  }

  .client-values article {
    grid-template-columns: 35px 1fr;
    gap: 14px;
  }

  .definition {
    display: block;
  }

  .definition-art {
    min-height: 320px;
  }

  .definition-copy {
    padding: 60px 24px;
  }

  .definition h2 {
    font-size: 38px;
  }

  .about {
    gap: 45px;
  }

  .about-photo {
    height: 380px;
  }

  .about-monogram {
    font-size: 160px;
  }

  .education-heading h2 {
    font-size: 38px;
  }

  .certificate-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 40px;
  }

  .certificate-card.wide .certificate-image,
  .certificate-card.portrait .certificate-image {
    height: 260px;
  }

  .certificate-info {
    padding: 20px;
  }

  .session-room {
    margin-top: 32px;
  }

  .session-room img {
    aspect-ratio: 1.35 / 1;
  }

  .session-room figcaption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 13px 15px;
  }

  .session-room figcaption strong {
    font-size: 15px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .faq-list {
    margin-top: 40px;
  }

  .faq-list summary {
    grid-template-columns: 28px 1fr 24px;
    gap: 10px;
    padding: 18px 0;
  }

  .faq-list summary strong {
    font-size: 17px;
    line-height: 1.3;
  }

  .faq-list details > p {
    margin: 0 0 20px 38px;
    font-size: 13px; 
    line-height: 1.6;
  }

  .faq-contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
  }

  .blog-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .featured-article {
    grid-template-columns: 1fr;
  }

  .article-art {
    height: 240px;
  }

  .contact {
    padding: 65px 24px;
  }

  .contact h2 {
    font-size: 38px;
  }
  footer {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 50px 24px 30px;
  }

  footer > p {
    text-align: left;
  }

  footer > div {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  footer > small {
    grid-column: auto;
    font-size: 12px;
    line-height: 1.6;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px; 
    height: 44px;
  }
  
  .back-to-top i {
    font-size: 16px;
  }
}

@media (max-width: 600px) {

  #o-meni,
  #o-meni.about {
    display: block;
    overflow: hidden;
  }

  #o-meni .portrait-card {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 4 / 5;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    transform: none;
    position: relative;
    display: block;
    overflow: hidden;
  }

  #o-meni .portrait-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
  }

}
