/**
 * Адаптивные стили темы.
 */

/* ==========================================================================
   Планшеты и небольшие ноутбуки
   ========================================================================== */
   

@media (max-width: 1440px) {

    :root {
        --logo-size: 72px;
    }
	
	
	.site-navigation {
    margin-top: -48px;
    margin-right: 20px;
}

.site-navigation__list {
    gap: 24px;
}

.site-navigation__list a {
    font-size: 14px;
}

    .home .site-branding {
    transform: translateX(360px);
}

    .hero__content {
        width: 560px;
        max-width: 44%;
        margin-left: -35px;
        transform: translateY(-147px);
    }

    .hero__eyebrow {
        margin-bottom: 10px;
        font-size: 38px;
    }

    .hero__title {
        width: 560px;
        font-size: 100px;
        line-height: 0.96;
    }

    .hero__title-line:last-child {
        padding-left: 245px;
    }
	
	
	

}  
   
   
   

@media (max-width: 1100px) {

    :root {
        --logo-size: 48px;
    }

    .site-header {
        padding: 14px 0;
    }

    .site-navigation {
        margin-top: -32px;
        margin-right: 46px;
    }

    .site-navigation__list {
        gap: 18px;
    }

    .site-navigation__list a {
        font-size: 10px;
        letter-spacing: 0.01em;
    }

  .home .site-branding {
    transform: translateX(295px);
}

    .hero__content {
        width: 410px;
        max-width: 45%;
        margin-left: 23px;
        transform: translateY(-104px);
    }

    .hero__eyebrow {
        margin-bottom: 9px;
        font-size: 22px;
    }

    .hero__title {
        width: 410px;
        font-size: 70px;
        line-height: 0.96;
        letter-spacing: -0.045em;
    }

    .hero__title-line:last-child {
        padding-left: 155px;
        font-size: 0.96em;
    }
	
	
    /* Футер на небольших ноутбуках и планшетах в альбомной ориентации */

    .site-footer__main {
        padding-top: 28px;
    }

    .site-footer__title {
        margin-bottom: 22px;
        font-size: 28px;
    }

    .site-footer__links {
        gap: 0 24px;
    }

    .site-footer__item {
        flex: 0 0 110px;
    }

    .site-footer__link {
        min-height: 142px;
    }

    .site-footer__icon-wrapper {
        width: 92px;
        height: 86px;
        margin-bottom: 6px;
    }

    .site-footer__icon {
        max-width: 82px;
        max-height: 82px;
    }

    .site-footer__item:nth-child(3) .site-footer__icon {
        max-width: 92px;
    }

    .site-footer__link-title {
        max-width: 110px;
        font-size: 16px;
    }

}

/* ==========================================================================
   Мобильная навигация
   ========================================================================== */

@media (max-width: 782px) {
:root {
        --container-padding: 24px;
        --logo-size: 62px;
    }

    body.admin-bar {
        min-height: calc(100vh - 46px);
    }

    /* ==============================================================
       Планшетная шапка
       ============================================================== */

    .site-header {
        padding: 16px 0;
    }

    .site-header__inner {
        align-items: center;
        justify-content: space-between;
        gap: 24px;
    }

    /*
     * Сбрасываем сильное смещение, заданное для ширины до 1100px.
     * На планшете логотип должен стоять у левой границы контейнера.
     */


.home .site-branding {
    transform: translate(92px, 90px);
}

   .menu-toggle {
    display: block;
    flex: 0 0 auto;
    margin-left: auto;

    color: #2f5d96;
    background-color: rgba(213, 227, 242, 0.72);
    border: 1px solid rgba(47, 93, 150, 0.28);
    border-radius: 6px;

    box-shadow: 0 2px 8px rgba(36, 79, 125, 0.14);
}

.menu-toggle__line {
    left: 50%;
    width: 26px;
    height: 3px;
    border-radius: 2px;
    transform: translateX(-50%);
}

.menu-toggle__line:nth-child(1) {
    top: 13px;
}

.menu-toggle__line:nth-child(2) {
    top: 21px;
}

.menu-toggle__line:nth-child(3) {
    top: 29px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(1),
.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(3) {
    top: 21px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(1) {
    transform: translateX(-50%) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(3) {
    transform: translateX(-50%) rotate(-45deg);
}

    /* ==============================================================
       Полноэкранное мобильное меню
       ============================================================== */

.site-navigation {
    position: fixed;
    z-index: var(--z-navigation);
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 24px;
        margin: 0;

        background-color: #b5cbe6;

        opacity: 0;
        visibility: hidden;
        transform: translateY(-16px);

        transition:
            opacity var(--transition-base),
            visibility var(--transition-base),
            transform var(--transition-base);
    }

    .site-navigation.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-navigation__list {
        align-items: center;
        flex-direction: column;
        gap: 14px;
		padding-top: 20px;
    }
	

    .site-navigation__list a {
        padding: 10px 16px;
        font-size: 28px;
        text-align: center;
		 color: #2f5d96;
    text-shadow: none;
    }
	
	.site-navigation__list .current-menu-item > a {
    color: #2f5d96;
}

    body.menu-open {
        overflow: hidden;
    }

    /* ==============================================================
       Hero на планшете в портретной ориентации
       ============================================================== */

    .hero {
        min-height: 640px;
    }

    .hero__background {
        position: absolute;
        inset: 0;

        width: 100%;
        height: 100%;
        max-width: none;

        object-fit: cover;
        object-position: 100% top;
    }

    .hero__overlay {
        position: relative;

        min-height: 640px;
        align-items: flex-start;

        padding: 270px 0 56px;
    }

.hero__content {
    width: 390px;
    max-width: calc(100% - 48px);
    margin-left: 62px;
    transform: translateY(-260px);
}

.hero__eyebrow {
    margin-bottom: 6px;
    font-size: 24px;
}

.hero__title {
    width: auto;
    max-width: none;
    margin: 0;

    font-size: 44px;
    line-height: 0.7;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.hero__title-line {
    display: inline;
}

.hero__title-line:last-child {
    padding-left: 0;
    font-size: inherit;
}


.home-welcome {
    padding: 54px 0 60px;
}

.home-welcome__title {
    margin-bottom: 26px;
}

.home-welcome__text {
    font-size: 18px;
    line-height: 1.7;
    text-align: left;
}

.home-welcome__notice {
    padding-top: 28px;
    margin-top: 34px;
}


/* ==============================================================
   Футер на планшете в портретной ориентации
   ============================================================== */

.site-footer__main {
    padding-top: 24px;
}

.site-footer__title {
    margin-bottom: 20px;
    font-size: 24px;
}

.site-footer__links {
    gap: 16px 20px;
}

.site-footer__item {
    flex: 0 0 92px;
}

.site-footer__link {
    min-height: 118px;
}

.site-footer__icon-wrapper {
    width: 76px;
    height: 70px;
    margin-bottom: 5px;
}

.site-footer__icon {
    max-width: 66px;
    max-height: 66px;
}

/* YouTube шире остальных исходных изображений */
.site-footer__item:nth-child(3) .site-footer__icon {
    max-width: 76px;
}

/* Эмблема магазина визуально крупнее обычных иконок */
.site-footer__item:nth-child(6) .site-footer__icon {
    max-width: 58px;
    max-height: 58px;
}

.site-footer__link-title {
    max-width: 92px;
    font-size: 14px;
}

body.menu-open .site-branding {
    opacity: 0;
    visibility: hidden;
}


}

/* ==========================================================================
   Узкие телефоны
   ========================================================================== */

@media (max-width: 480px) {
    :root {
        --container-padding: 16px;
        --logo-size: 52px;
    }

    .site-header {
        padding: 12px 0;
    }
	
.home .site-branding {
    transform: translate(2px, 2px);
}

    .site-navigation__list a {
        font-size: 20px;
    }

.hero {
    min-height: 0;
    aspect-ratio: 1086 / 959;
}

.hero__picture {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    background-color: #b5cbe6;
}

.hero__background {
    position: static;

    width: 100%;
    height: auto;
    max-width: none;

    object-fit: initial;
    object-position: initial;
}

.hero__content {
    width: 100%;
    max-width: none;
    margin-left: 0;
    text-align: center;
    transform: none;
	padding-left: 12px;
}

.hero__overlay {
    width: 100%;
    height: 100%;
    min-height: 0;
    align-items: flex-start;
    padding: 13px 0 0;
}

   .hero__eyebrow {
    margin-bottom: 1px;
    font-size: 18px;
    line-height: 1.15;
	font-weight: 500;
    letter-spacing: 0.01em;
}

.hero__title {
    width: 100%;
    max-width: none;
    margin: 0;

    font-size: clamp(24px, 7.5vw, 28px);
    line-height: 1;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.hero__title-line {
    display: inline;
}

.hero__title-line:last-child {
    padding-left: 0;
    font-size: inherit;
}

  

    .site-footer {
        padding-top: 20px;
    }
	
	.site-footer__copyright {
		line-height: 0.8;
	}
	
	.home-welcome {
    padding: 20px 0 25px;
}

.home-welcome__title {
    margin-bottom: 15px;
    font-size: 28px;
}

.home-welcome__text {
    font-size: 18px;
    line-height: 1.65;
}

.home-welcome__notice {
	width: 100%;
}

.home-welcome__notice p {
	    font-size: 17px;
    line-height: 1.3;
	
}

.home-welcome__signature p:first-child {
	font-size: 17px;
}


.home-welcome__notice {
    padding-top: 25px;
    margin-top: 25px;
    font-size: 16px;
    text-align: left;
}

.home-welcome__notice-title {
    font-size: 18px;
    text-align: center;
}

.home-welcome__signature {
	margin-top: 25px;
}

.home-welcome__signature p:last-child {
	margin-top: 1px;
	font-size: 18px;
}
 

.scroll-to-top {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
}

.scroll-to-top__icon {
    font-size: 25px;
}
	
	
.divider-parachutes {
    height: 40px;
    background-size: auto 40px;
}


/* ==============================================================
   Компактный футер на телефонах
   ============================================================== */

.site-footer__main {
    padding-top: 3px;
	padding-bottom: 8px;
}

.site-footer__title {
    margin-bottom: 19px;
}

.site-footer__links {
    row-gap: 8px;
    column-gap: 14px;
}

.site-footer__item {
    flex-basis: 86px;
}

.site-footer__link {
    min-height: 102px;
}

.site-footer__icon-wrapper {
    width: 70px;
    height: 64px;
    margin-bottom: 4px;
}

.site-footer__icon {
    max-width: 62px;
    max-height: 62px;
}

/* YouTube имеет горизонтальные пропорции */
.site-footer__item:nth-child(3) .site-footer__icon {
    max-width: 68px;
}

/* Эмблема магазина */
.site-footer__item:nth-child(6) .site-footer__icon {
    max-width: 54px;
    max-height: 54px;
}

.site-footer__link-title {
    max-width: 86px;
    font-size: 13px;
}
	
}


@media (min-width: 321px) and (max-width: 480px) {

    .divider-parachutes {
        height: 40px;

        background-repeat: round no-repeat;
        background-position: left top;
        background-size: auto 40px;
    }

}


@media (max-width: 320px) {

    :root {
        --logo-size: 46px;
    }

    .hero__title {
        font-size: 24px;
    }
	
	.hero__eyebrow {
    font-size: 16px;
	}
	
.home .site-branding {
    transform: translate(-2px, 2px);
}

.hero__content {
        padding-left: 0;
        transform: translateX(1px);
    }
	
	.divider-parachutes {
    height: 40px;
    background-size: auto 40px;
}

}



/* ==========================================================================
   Страница «История»
   ========================================================================== */

@media (max-width: 782px) {

    .history-hero__heading {
        padding: 30px 0 28px;
    }

    .history-hero__title {
        font-size: 32px;
    }

    .history-hero__subtitle {
        margin-top: 8px;
        font-size: 18px;
    }

    .history-content {
        padding: 6px 0 30px;
    }

    .history-content__inner {
        max-width: 100%;
    }

    .history-section__header {
        margin-bottom: 24px;
    }

    .history-section__year {
        font-size: 18px;
    }

    .history-section__title {
        font-size: 22px;
    }

    .history-section__text {
        font-size: 18px;
        line-height: 1.7;
    }
	
	
	/* Логотип в открытом мобильном меню */
.site-navigation::before {
    content: "";
    position: absolute;
    top: 130px;
    left: 50%;
    width: 130px;
    height: 130px;
    background-image: url("../images/logo.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translateX(-50%);
}

}


@media (max-width: 480px) {

    .history-hero__heading {
        padding: 24px 0 22px;
    }

    .history-hero__title {
        font-size: 28px;
    }

    .history-hero__subtitle {
        font-size: 18px;
        line-height: 1.3;
    }

    .history-content {
        padding: 4px 0 48px;
    }

    .history-section__header {
        margin-bottom: 20px;
    }

    .history-section__year {
        margin-bottom: 6px;
        font-size: 17px;
    }

    .history-section__title {
        font-size: 20px;
    }

    .history-section__text {
        font-size: 18px;
        line-height: 1.65;
    }

    .history-section__text p {
        margin-bottom: 20px;
    }
	
	
	.site-navigation::before {
    content: "";
    position: absolute;
    top: 110px;
    left: 50%;
    width: 100px;
    height: 100px;
    background-image: url("../images/logo.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translateX(-50%);
}

 .site-navigation__list {
        align-items: center;
        flex-direction: column;
        gap: 1px;
		padding-top: 50px;
    }

}


@media (max-width: 339px) {
	.site-navigation::before {
    content: "";
    position: absolute;
    top: 90px;
    left: 50%;
    width: 80px;
    height: 80px;
    background-image: url("../images/logo.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translateX(-50%);
}	
	
	.site-navigation__list {
        align-items: center;
        flex-direction: column;
        gap: 1px;
		padding-top: 40px;
    }
	
	.site-navigation__list a {
		line-height: 0.7;
		font-size: 19px;
	}
	
}	


@media (max-width: 479px) {

    .history-content {
        padding-bottom: 30px;
    }


/* ==========================================================================
   Системная настройка уменьшения анимации
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

