
.mobile_menu {
  display: none;
}

@media screen and (max-width: 600px) and (orientation: portrait) {

  .wrapper {
    min-height: 0;
  }

  .container {
    box-sizing: border-box;
    width: 100%;
    padding: 0 18px;
  }

  .header_top {
    height: 66px;
    z-index: 5;
  }

  .header_top-inner {
    height: 100%;
    box-sizing: border-box;
    padding: 0;
    gap: 12px;
  }

  .header_logo img {
    display: block;
    height: 25px;
    max-width: 100%;
  }

  .header_nav {
    display: none;
  }

  .mobile_menu {
    display: block;
    position: relative;
    margin-left: auto;
  }

  .mobile_menu summary {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    list-style: none;
  }

  .mobile_menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile_menu_icon,
  .mobile_menu_icon::before,
  .mobile_menu_icon::after {
    display: block;
    width: 23px;
    height: 2px;
    background: #111;
    border-radius: 2px;
  }

  .mobile_menu_icon {
    position: relative;
  }

  .mobile_menu_icon::before,
  .mobile_menu_icon::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .mobile_menu_icon::before {
    top: -7px;
  }

  .mobile_menu_icon::after {
    top: 7px;
  }

  .mobile_menu[open] .mobile_menu_icon {
    background: transparent;
  }

  .mobile_menu[open] .mobile_menu_icon::before {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile_menu[open] .mobile_menu_icon::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile_menu_panel {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    width: min(230px, 78vw);
    padding: 8px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 30px #0002;
    z-index: 20;
  }

  .mobile_menu_panel a {
    display: block;
    padding: 12px 14px;
    color: #000;
    font-size: 17px;
    text-decoration: none;
  }

  /* Главная композиция */

  .header_body {
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .header_body .container {
    height: auto;
    padding: 0;
  }

  .header_body-inner > div {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .header_title {
    position: relative;
    inset: auto;
    transform: none;

    width: max-content;
    max-width: calc(100% - 28px);
    margin: 48px auto 0;

    text-align: right;
    font-size: clamp(38px, 11.5vw, 64px);
    line-height: 1.02;
  }

  .header_img {
    position: relative;
    inset: auto;
    transform: none;

    display: block;
    width: min(100%, 480px);
    height: auto;
    max-width: none;

    margin: 28px auto -2px;
    object-fit: contain;
  }

  .section {
    height: auto;
    min-height: 0;
    padding: 20px 12px 0;
  }

  .contacts {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(12px, 5vw, 25px);
    padding: 0;
  }

  .contacts p {
    margin: 0;
    padding: 0;
    line-height: 0;
  }

  .contacts a {
    display: inline-flex;
    padding: 3px;
  }

  .contacts img {
    display: block;
    width: clamp(25px, 7.5vw, 32px);
    height: clamp(25px, 7.5vw, 32px);
    object-fit: contain;
  }

  footer {
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 12px 12px 14px;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
  }
}

/* Responsive layout for tablets, phones and landscape screens. */
@media (max-width: 900px) {
  html, body { min-width: 0; overflow-x: hidden; }
  img, video, iframe { max-width: 100%; }
  .header_body { height: clamp(480px, 75vw, 650px); }
  .header_title {
    left: 5%; top: 24%; max-width: 52%;
    font-size: clamp(42px, 7vw, 68px);
  }
  .header_img {
    height: auto; width: min(68vw, 760px); max-height: 115%;
    left: 32%; top: 55%; transform: translateY(-45%);
    object-fit: contain;
  }
  .brand-section { padding: clamp(36px, 7vw, 72px) clamp(22px, 5vw, 56px); }
  .brand-container { width: 100%; }
  .about blockquote { padding-right: 0; }
  .inspiration-grid { gap: 28px; }
  .inspiration-art { min-height: 320px; }
  .identity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project, .project_reverse { padding: 32px; }
  .listen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .header_nav { display: none; }
  .mobile_menu { display: block; position: relative; margin-left: auto; }
  .mobile_menu summary {
    display: flex; width: 44px; height: 44px;
    align-items: center; justify-content: center;
    cursor: pointer; list-style: none;
  }
  .mobile_menu summary::-webkit-details-marker { display: none; }
  .mobile_menu_icon, .mobile_menu_icon::before, .mobile_menu_icon::after {
    display: block; width: 23px; height: 2px;
    background: #111; border-radius: 2px;
  }
  .mobile_menu_icon { position: relative; }
  .mobile_menu_icon::before, .mobile_menu_icon::after {
    content: ""; position: absolute; left: 0;
  }
  .mobile_menu_icon::before { top: -7px; }
  .mobile_menu_icon::after { top: 7px; }
  .mobile_menu[open] .mobile_menu_icon { background: transparent; }
  .mobile_menu[open] .mobile_menu_icon::before { transform: translateY(7px) rotate(45deg); }
  .mobile_menu[open] .mobile_menu_icon::after { transform: translateY(-7px) rotate(-45deg); }
  .mobile_menu_panel {
    position: absolute; right: 0; top: calc(100% + 4px);
    width: min(230px, 78vw); padding: 8px; box-sizing: border-box;
    background: #fff; border-radius: 10px;
    box-shadow: 0 12px 30px #0002; z-index: 20;
  }
  .mobile_menu_panel a {
    display: block; padding: 12px 14px; color: #000;
    font-size: 17px; text-decoration: none;
  }
  .project, .project_reverse {
    grid-template-columns: 1fr; gap: 22px; margin-bottom: 38px;
  }
  .project_reverse .project_media, .project_reverse .project_content { order: initial; }
  .projects { padding-top: 38px; }
}

@media (max-width: 600px) {
  .container { width: 100%; padding-left: 18px; padding-right: 18px; }
  .header_top { height: 66px; }
  .header_top-inner { min-height: 66px; padding: 0; gap: 12px; }
  .header_body { height: auto; min-height: 0; overflow: hidden; }
  .header_body .container { height: auto; padding: 0; }
  .header_body-inner > div {
    display: flex; flex-direction: column; align-items: center;
  }
  .header_title {
    position: relative; inset: auto; transform: none;
    width: max-content; max-width: calc(100% - 28px);
    margin: 42px auto 0; text-align: right;
    font-size: clamp(34px, 10.5vw, 58px); line-height: 1.02;
  }
  .header_img {
    position: relative; inset: auto; transform: none;
    display: block; width: min(100%, 440px); height: auto;
    max-height: none; max-width: 100%; margin: 24px auto 0;
    object-fit: contain;
  }
  .section { height: auto; min-height: 0; padding: 28px 18px 0; }
  .section h2 {
    padding: 0; margin-bottom: 28px;
    font-size: clamp(32px, 9vw, 48px);
  }
  .contacts { flex-wrap: wrap; gap: 16px 20px; padding: 0; }
  .contacts p { margin: 0; padding: 0; line-height: 0; }
  .contacts a { display: inline-flex; padding: 3px; }
  .contacts img { display: block; width: 28px; height: 28px; object-fit: contain; }
  .brand-section { padding: 42px 20px; }
  .brand-section h2 {
    font-size: clamp(34px, 9vw, 48px); margin-bottom: 25px;
  }
  .about blockquote, .inspiration blockquote {
    font-size: clamp(19px, 5.2vw, 25px); line-height: 1.45;
  }
  .philosophy { margin-top: 42px; }
  .inspiration-grid { grid-template-columns: 1fr; gap: 25px; }
  .inspiration-art {
    min-height: 0;
    height: 360px;
    padding: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
  }

  .inspiration-art img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform: none;
  }
  .identity-grid { grid-template-columns: 1fr; gap: 26px; }
  .identity-preview { height: clamp(190px, 62vw, 260px); }
  .identity-grid h3 { margin-top: 12px; font-size: 20px; }
  .projects { padding: 32px 0 5px; }
  .project, .project_reverse {
    padding: 0 18px; gap: 16px; margin-bottom: 38px;
  }
  .project_title { font-size: clamp(28px, 8vw, 38px); }
  .project_description { font-size: 16px; line-height: 1.5; }
  .grid { grid-template-columns: 1fr; gap: 24px; }
  .card:hover, .box:hover { transform: none; }
  .card img { display: block; width: 100%; height: auto; }
  .listen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .box {
    height: 125px; min-width: 0; border-radius: 18px;
    font-size: 15px; padding: 10px;
  }
  .player {
    padding: 8px 10px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }
  .player audio { display: block; width: 100%; max-width: 100%; }
  footer {
    height: auto; min-height: 0; margin: 0;
    padding: 14px 12px calc(14px + env(safe-area-inset-bottom));
    font-size: 12px; line-height: 1.4; text-align: center;
  }
}

@media (max-width: 360px) {
  .header_title { font-size: 34px; }
  .listen { grid-template-columns: 1fr; }
  .box { height: 105px; }
}

@media (max-width: 900px) and (orientation: landscape) {
  .header_body { height: min(78vw, 560px); }
  .header_title { top: 18%; font-size: clamp(34px, 6vw, 56px); }
  .header_img { width: min(58vw, 600px); left: 38%; }
}

@media (max-width: 600px) {

    .svetulechka-page .header_img {
        position: relative;
        inset: auto;
        display: block;
        width: 110%;
        max-width: none;
        height: auto;
        max-height: none;
        flex-shrink: 0;
        margin: 24px auto 0;
        transform: translateX(-10%);
        object-fit: contain;
    }

    .svetulechka-page .header_body {
        overflow: hidden;
    }
}

@media (max-width: 1024px) and (orientation: landscape) {

    .svetulechka-page .header_body {
        position: relative;
        height: clamp(320px, 55vw, 560px);
        overflow: hidden;
    }

    .svetulechka-page .header_title {
        position: absolute;
        inset: auto;
        left: 2vw;
        top: 18%;
        margin: 0;
        width: auto;
        max-width: none;
        font-size: clamp(28px, 5.2vw, 56px);
        line-height: 1;
        text-align: left;
        transform: none;
        z-index: 2;
    }

    .svetulechka-page .header_img {
        position: absolute;
        inset: auto;
        left: 25%;
        bottom: 0;
        width: auto;
        height: 108%;
        max-width: none;
        max-height: none;
        margin: 0;
        transform: none;
        z-index: 1;
    }
}