/* Mobile-first overrides loaded with media="(max-width: 768px)" and cache-bust */

:root {
  --m-pad: 16px;
}

.container {
  padding-left: var(--m-pad);
  padding-right: var(--m-pad);
}

/* Header */
.header__inner {
  height: 60px;
}

.logo__name {
  font-size: 1.1rem;
}

.logo__role {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

/* Full-screen mobile menu */
.nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(320px, 100%);
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  background: var(--bg);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 80px var(--m-pad) 24px;
  gap: 6px;
  box-shadow: -8px 0 40px var(--shadow);
  transition: transform 0.3s ease;
  transform: translateX(110%);
  z-index: 105;
  overflow-y: auto;
}

.nav.open {
  transform: translateX(0);
}

.nav__link {
  font-size: 1.05rem;
  width: 100%;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.nav__link::after {
  display: none;
}

.nav__link--cta {
  border: 1px solid var(--accent);
  border-radius: 50px;
  padding: 12px 20px;
  margin-top: 8px;
  text-align: center;
}

.nav-toggle {
  display: flex;
  z-index: 110;
  width: 44px;
  height: 44px;
  padding: 10px;
  gap: 5px;
  background: transparent;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--accent);
}

/* Hero — vertical compact layout */
.hero {
  padding: 20px 0 28px;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.hero__content {
  order: 2;
  width: 100%;
  animation: none;
  opacity: 1;
  transform: none;
}

.hero__image-wrapper {
  order: 1;
  width: 160px;
  max-width: 46vw;
  aspect-ratio: 1;
  margin: 0 auto 4px;
  opacity: 1;
  transform: none;
  animation: none;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  box-shadow: 0 14px 34px var(--shadow);
}

.hero__image-bg {
  border-radius: 50%;
  top: 8px;
  left: -8px;
  right: 8px;
  bottom: -8px;
}

.hero__subtitle {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.hero__title {
  font-size: 1.55rem;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero__lead {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 auto 16px;
  max-width: 100%;
}

.hero__cta {
  display: inline-flex;
  width: 100%;
  max-width: 300px;
  padding: 14px 18px;
  font-size: 0.9rem;
}

/* Sections */
.section {
  padding: 32px 0;
}

.section__header {
  margin-bottom: 22px;
}

.section__label {
  font-size: 0.72rem;
  margin-bottom: 8px;
}

.section__title {
  font-size: 1.45rem;
}

/* About */
.about__grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about__text p {
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.about__credentials {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.credential {
  padding: 18px;
  border-radius: 14px;
}

.credential__title {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.credential__place {
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.credential__year {
  font-size: 0.75rem;
}

/* Issues */
.issues__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.issue {
  padding: 20px;
  border-radius: 16px;
}

.issue__num {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.issue__text {
  font-size: 0.95rem;
}

/* Services */
.services__grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service {
  padding: 20px;
  border-radius: 18px;
}

.service__title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service__text {
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Approach */
.approach__lead {
  font-size: 1rem;
  margin-bottom: 24px;
}

.approach__tags {
  gap: 10px;
}

.tag {
  padding: 10px 16px;
  font-size: 0.8rem;
}

/* Contact */
.contact {
  padding: 36px 0;
}

.contact__card {
  padding: 26px var(--m-pad);
  border-radius: 20px;
}

.contact__title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.contact__text {
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.contact__cta {
  width: 100%;
  max-width: 300px;
  padding: 14px 18px;
  font-size: 0.9rem;
}

/* Footer */
.footer {
  padding: 32px 0;
}

.footer__name {
  font-size: 1.15rem;
}

.footer__disclaimer {
  font-size: 0.78rem;
}

.footer__telegram {
  font-size: 0.82rem;
  padding: 6px 14px 6px 6px;
}

.footer__telegram-icon {
  width: 26px;
  height: 26px;
  font-size: 0.58rem;
}

/* Modal full-screen */
.modal {
  padding: 0;
}

.modal__dialog {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  border-radius: 0;
  padding: 18px var(--m-pad) 14px;
  display: flex;
  flex-direction: column;
}

.modal__close {
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
}

.modal__title {
  font-size: 1.25rem;
  margin-bottom: 4px;
  padding-right: 44px;
}

.modal__subtitle {
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.modal__form {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.yaform-wrapper {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.yaform-iframe {
  width: 650px;
  height: 700px;
  border: none;
  display: block;
  transform-origin: 0 0;
}

.modal__form iframe {
  min-height: 0;
  border-radius: 8px;
}
