/* ТЗ 110: композиция телефона и планшета. Загружается после базовых слоев. */
:root {
  scrollbar-gutter: stable;
}
.text-link {
  white-space: normal;
}
.header > *,
.nav > *,
.hero-copy,
.format-row > * {
  min-width: 0;
}
.quiz-result > h3 {
  scroll-margin-block: 24px;
}
.selection-status {
  min-height: 24px;
}
/* Нативное меню не меняет высоту шапки при поздней загрузке JS. */
details.vf-more > summary {
  list-style: none;
  cursor: pointer;
}
details.vf-more > summary::-webkit-details-marker {
  display: none;
}
details.vf-more .vf-more__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 270px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--wine);
}
details.vf-more:not([open]) .vf-more__panel {
  display: none;
}
details.vf-more[open] .vf-more__panel {
  display: grid;
}

@media (min-width: 1051px) and (max-width: 1200px) {
  .header {
    gap: 18px;
  }
  .nav {
    gap: 20px;
  }
  .header-action {
    padding-inline: 16px;
  }
  .hero-actions {
    flex-wrap: wrap;
  }
  .hero-actions .button {
    white-space: normal;
  }
}

@media (max-width: 1050px) {
  :root {
    --gutter: clamp(24px, 5vw, 50px);
    --body: 19px;
  }
  .header {
    gap: 20px;
  }
  .nav {
    justify-content: flex-start;
    gap: 32px;
  }
  .hero-copy {
    width: 55%;
  }
  .hero-self {
    font-size: clamp(116px, 14vw, 148px);
  }
  .hero-stay,
  .hero-people {
    font-size: clamp(48px, 6.2vw, 65px);
  }
  .hero-photo {
    right: 0;
    width: 49%;
    height: 75%;
  }
  .hero-note {
    right: 2%;
    top: 24px;
    bottom: auto;
    width: 170px;
    font-size: 22px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 340px;
  }
  .hero-actions .button {
    white-space: normal;
  }
  .quiz {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.5fr);
    gap: 38px;
    padding: 90px var(--gutter);
  }
  .quiz-aside h2 {
    font-size: 54px;
  }
  .quiz-aside > p:not(.hand) {
    font-size: 19px;
    margin-top: 24px;
  }
  .quiz-tabs {
    gap: 6px;
  }
  .quiz-tabs button {
    padding-inline: 18px;
    font-size: 19px;
  }
  .quiz-options label {
    font-size: 19px;
    gap: 16px;
    padding-inline: 0;
  }
  .quiz-actions {
    flex-wrap: wrap;
    gap: 20px;
  }
  .quiz-actions .button {
    min-width: 0;
    font-size: 19px;
  }
  #resultSummary {
    font-size: 20px;
  }
  .result-situation h4 {
    font-size: 20px;
  }
  .result-situation p {
    font-size: 18px;
  }
  .result-meme {
    gap: 18px;
  }
  .result-meme img {
    width: 48%;
    height: auto;
    max-height: 180px;
  }
  .result-meme figcaption {
    font-size: 24px;
  }
  .strategies {
    padding-block: 80px;
  }
  .strategy-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .strategy-intro h2 {
    font-size: 58px;
  }
  .strategy-intro > p {
    font-size: 21px;
    margin: 0;
    padding: 0;
    max-width: 36em;
  }
  .strategy-pair {
    margin-inline: 0 30px;
    padding-top: 48px;
  }
  .strategy {
    padding: 28px;
  }
  .strategy h3 {
    font-size: 34px;
  }
  .strategy p {
    font-size: 19px;
  }
  .strategy-others::after {
    width: 28px;
  }
  .strategy-together {
    grid-template-columns: auto 1fr;
    gap: 30px;
    margin-top: 48px;
  }
  .strategy-together > div {
    grid-column: 1 / -1;
    text-align: left;
  }
  .about-intro {
    gap: 6%;
    padding: 90px var(--gutter) 80px;
  }
  .about-photo {
    height: 450px;
  }
  .about-photo--vita140 {
    object-position: center 42%;
  }
  .about-copy h2 {
    font-size: 64px;
    white-space: normal;
  }
  .about-subtitle {
    font-size: 20px;
  }
  .about-story {
    font-size: 25px;
    margin-top: 24px;
  }
  .credentials {
    gap: 22px;
    margin-block: 28px;
  }
  .skills {
    column-gap: 7%;
    padding-block: 0 90px;
  }
  .skills h2 {
    font-size: 48px;
  }
  .approach-intro > p {
    font-size: 21px;
  }
  .approach-step h3 {
    font-size: 23px;
  }
  .approach-step p {
    font-size: 19px;
  }
  .objections {
    gap: 7%;
    padding-bottom: 90px;
  }
  .objections h2 {
    font-size: 48px;
  }
  .objection-item summary {
    font-size: 20px;
    gap: 18px;
  }
  .objection-answer {
    font-size: 19px;
  }
  .contact {
    gap: 7%;
    padding: 85px var(--gutter);
  }
  .contact h2 {
    font-size: 68px;
  }
  .contact-intro {
    font-size: 21px;
  }
  .contact .hand {
    font-size: 28px;
  }
  .format-row {
    flex-direction: column;
    gap: 6px;
  }
  .format-time,
  .format-price {
    font-size: 46px;
  }
  .format-row--short .format-time,
  .format-row--short .format-price {
    font-size: 34px;
  }
  .contact .contact-details .format-name {
    font-size: 18px;
  }
  .channel-invite {
    gap: 7%;
    padding-block: 80px;
  }
  .channel-invite h2 {
    font-size: 44px;
  }
  .channel-invite p {
    font-size: 19px;
  }
  .footer {
    gap: 30px;
    padding: 45px var(--gutter);
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 22px;
    --body: 18px;
  }
  .header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px 10px;
    padding-block: 20px 16px;
  }
  .brand {
    min-width: 0;
  }
  .brand strong {
    font-size: clamp(23px, 6.4vw, 29px);
  }
  .brand span {
    font-size: 13px;
  }
  .header-action {
    display: none;
  }
  .nav {
    grid-column: 1 / -1;
    width: auto;
    gap: 12px;
    justify-content: space-between;
    font-size: 14px;
  }
  .nav > a,
  .vf-more__trigger {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 8px;
  }
  .vf-more__trigger {
    gap: 5px;
  }
  .js .vf-more__panel {
    min-width: min(275px, calc(100vw - 44px));
  }
  .vf-more__panel a {
    padding-block: 7px;
  }
  .hero::before {
    inset: auto 0 0 25%;
    height: 530px;
  }
  .hero-body {
    padding-top: 24px;
    padding-bottom: 0;
  }
  .hero-copy {
    width: 100%;
  }
  .hero-be {
    font-size: clamp(56px, 17vw, 74px);
  }
  .hero-self {
    font-size: clamp(94px, 29vw, 130px);
  }
  .hero-stay,
  .hero-people {
    font-size: clamp(44px, 13.5vw, 62px);
  }
  .hero-description {
    font-size: 18px;
    line-height: 1.5;
    margin-top: 24px;
  }
  .hero-actions {
    max-width: none;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
  }
  .hero-actions .button {
    min-width: 0;
    flex: auto;
    min-height: 54px;
  }
  .hero-photo {
    position: relative;
    width: 100%;
    height: 390px;
    left: -22px;
    right: auto;
    margin-top: 32px;
    object-position: left bottom;
  }
  .hero-note {
    position: relative;
    top: auto;
    bottom: auto;
    right: auto;
    width: 210px;
    margin: 0 0 0 auto;
    padding: 8px 0 26px;
    font-size: 23px;
    transform: rotate(-5deg);
    text-align: left;
  }
  .quiz {
    display: block;
    padding: 70px var(--gutter);
  }
  .quiz-aside {
    display: block;
    padding: 0;
  }
  .quiz-aside h2 {
    font-size: clamp(44px, 12vw, 58px);
  }
  .quiz-aside > p:not(.hand) {
    max-width: 29em;
    margin-top: 24px;
    font-size: 18px;
  }
  .quiz-main {
    padding: 32px 0 0;
  }
  .quiz-tabs {
    gap: 4px;
    margin-bottom: 16px;
  }
  .quiz-tabs button {
    flex: 1;
    font-size: 18px;
    padding: 12px 8px;
    min-height: 54px;
  }
  .quiz-options label {
    font-size: 18px;
    min-height: 76px;
    gap: 16px;
    padding: 15px 0;
    align-items: flex-start;
  }
  .quiz-options input {
    width: 28px;
    height: 28px;
    margin-top: 1px;
  }
  .selection-status {
    margin: 16px 0 0;
    font-size: 14px;
  }
  .quiz-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 25px;
  }
  .quiz-actions .button {
    width: 100%;
    padding-inline: 15px;
    font-size: 18px;
    min-height: 58px;
  }
  .quiz-actions .text-link,
  .result-edit {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .quiz-result > h3 {
    font-size: 40px;
  }
  #resultSummary {
    font-size: 20px;
    margin-top: 24px;
  }
  .result-situations {
    margin-top: 28px;
    gap: 26px;
  }
  .result-situation h4 {
    font-size: 19px;
  }
  .result-situation p {
    font-size: 18px;
  }
  .result-meme {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-block: 32px;
  }
  .result-meme img {
    width: 100%;
    height: auto;
    max-height: 240px;
    object-position: left center;
  }
  .result-meme figcaption {
    font-size: 26px;
    max-width: none;
  }
  .result-support {
    margin-top: 28px;
    font-size: 19px;
  }
  .quiz-nojs {
    font-size: 18px;
  }
  .strategies {
    padding-block: 65px;
  }
  .strategy-intro h2 {
    font-size: clamp(36px, 10.2vw, 46px);
  }
  .strategy-intro h2 span {
    white-space: normal;
  }
  .strategy-intro > p {
    font-size: 19px;
  }
  .strategy-pair {
    margin: 0;
    padding: 36px 16px 0 0;
  }
  .strategy {
    padding: 24px 20px;
  }
  .strategy-others {
    width: 96%;
  }
  .strategy-self {
    width: 96%;
    margin-left: 4%;
    margin-top: 24px;
  }
  .strategy h3 {
    font-size: 28px;
  }
  .strategy p {
    font-size: 17px;
  }
  .strategy-others::after {
    left: calc(100% + 4px);
    width: 16px;
    top: 42px;
    height: calc(100% + 24px);
    border-width: 2px;
  }
  .strategy-together {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 40px;
  }
  .strategy-together > h3 {
    font-size: 30px;
  }
  .strategy-together > .hand {
    font-size: 26px;
    transform: rotate(-4deg);
  }
  .strategy-together > div {
    grid-column: auto;
  }
  .strategy-together .button {
    width: 100%;
    font-size: 17px;
    padding-inline: 15px;
  }
  .about-intro {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 70px var(--gutter);
  }
  .about-photo {
    width: 100%;
    height: clamp(400px, 112vw, 520px);
  }
  .about-photo--vita140 {
    object-position: center 35%;
  }
  .about-copy {
    padding: 0;
  }
  .about-copy h2 {
    font-size: clamp(54px, 15vw, 68px);
  }
  .about-subtitle {
    font-size: 20px;
  }
  .about-story {
    font-size: 25px;
    line-height: 1.7;
    margin-top: 28px;
  }
  .credentials {
    gap: 24px;
    align-items: baseline;
    margin-block: 32px;
  }
  .credentials > p {
    font-size: 16px;
  }
  .credentials > p + p {
    padding: 0;
  }
  .credentials .methods {
    font-size: 23px;
  }
  .about-copy > .button {
    width: auto;
    text-align: left;
    min-height: 44px;
  }
  .skills {
    display: block;
    padding-block: 0 70px;
  }
  .skills h2 {
    font-size: 43px;
  }
  .approach-intro > p {
    font-size: 20px;
    margin-top: 26px;
  }
  .approach-intro > .text-link {
    font-size: 18px;
    margin-top: 24px;
  }
  .approach-steps {
    gap: 32px;
    padding-top: 40px;
  }
  .approach-step h3 {
    font-size: 22px;
  }
  .approach-step p {
    font-size: 18px;
  }
  .objections {
    display: block;
    padding-bottom: 65px;
  }
  .objections h2 {
    font-size: 42px;
    margin-bottom: 30px;
  }
  .objection-item {
    padding-block: 14px;
  }
  .objection-item summary {
    font-size: 19px;
    gap: 18px;
    min-height: 44px;
  }
  .objection-answer {
    font-size: 18px;
    margin-top: 16px;
  }
  .contact {
    display: block;
    padding: 65px var(--gutter);
  }
  .contact h2 {
    font-size: clamp(48px, 15vw, 62px);
  }
  .contact-intro {
    font-size: 20px;
    margin-top: 24px;
  }
  .contact .hand {
    font-size: 27px;
    margin-block: 30px;
  }
  .button-pink {
    min-height: 62px;
    font-size: 21px;
  }
  .contact-details {
    padding: 0;
    border: 0;
    margin-top: 48px;
  }
  .format-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 18px;
  }
  .format-time,
  .format-price {
    font-size: clamp(32px, 9.1vw, 44px);
  }
  .format-row--short .format-time,
  .format-row--short .format-price {
    font-size: 30px;
  }
  .contact .contact-details .format-name {
    font-size: 18px;
    margin-top: 10px;
  }
  .contact .contact-details .format-note {
    font-size: 18px;
    margin-top: 30px;
  }
  .format-links {
    font-size: 17px;
    gap: 18px;
  }
  .channel-invite {
    display: block;
    padding-block: 65px;
  }
  .channel-invite h2 {
    font-size: 40px;
    max-width: none;
    margin-bottom: 24px;
  }
  .channel-invite p {
    font-size: 19px;
  }
  .channel-invite .text-link {
    font-size: 18px;
    min-height: 44px;
  }
  .footer {
    padding-block: 36px;
  }
  .footer .brand strong {
    font-size: 32px;
  }
  .footer .brand span {
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  :root {
    --gutter: 18px;
  }
  .header {
    grid-template-columns: 1fr;
  }
  .header-action {
    display: none;
  }
  .nav {
    gap: 7px;
    font-size: 13px;
  }
  .hero-photo {
    left: -18px;
  }
  .hero-note {
    width: 190px;
    right: auto;
    font-size: 22px;
  }
  .format-row {
    flex-direction: column;
  }
}

/* Keep all four primary destinations on one line on a 320px screen. */
@media (max-width: 680px) {
  .nav { gap: 8px; }
  .nav > a, .vf-more__trigger { white-space: nowrap; flex-shrink: 0; }
}
@media (max-width: 360px) {
  .nav { gap: 5px; font-size: 13px; }
  .vf-more__trigger { gap: 3px; }
  .vf-more__trigger svg { width: 16px; height: 16px; }
}

/* The portrait and its note share one surface on phones. */
.hero-portrait { display: contents; }
@media (max-width: 680px) {
  .hero::before { display: none; }
  .hero-portrait {
    display: block;
    position: relative;
    margin: 36px calc(-1 * var(--gutter)) 0;
    height: clamp(500px, 135vw, 680px);
    background: var(--pink);
    isolation: isolate;
  }
  .hero-portrait .hero-photo {
    position: absolute;
    inset: auto auto 0 0;
    width: 100%;
    height: calc(100% - 124px);
    margin: 0;
    object-fit: contain;
    object-position: left bottom;
  }
  .hero-portrait .hero-note {
    position: absolute;
    top: 18px;
    right: 24px;
    bottom: auto;
    width: 190px;
    margin: 0;
    padding: 0;
    font-size: 22px;
    line-height: 1.45;
    text-align: center;
    transform: rotate(-6deg);
  }
}
