/*!
Theme Name: customthemes
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: customthemes
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

customthemes is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

.back-to-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: auto;
	height: auto;
	padding: 15px 20px;
	background: linear-gradient(135deg, #244dd3, #1a3aa8);
	color: white;
	border-radius: 25px;
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	z-index: 10000;
	box-shadow: 0 4px 20px rgba(36, 77, 211, 0.4);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border: none;
	border: 2px solid transparent;
}

.back-to-top.visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.back-to-top:hover {
	background: linear-gradient(135deg, #1a3aa8, #152c7a);
	transform: translateY(-3px);
	box-shadow: 0 8px 30px rgba(36, 77, 211, 0.5);
	border-color: rgba(255, 255, 255, 0.2);
}

.back-to-top:active {
	transform: translateY(-1px);
	box-shadow: 0 4px 20px rgba(36, 77, 211, 0.4);
}

.back-to-top-icon {
	font-size: 18px;
	font-weight: bold;
	transition: transform 0.3s ease;
}

.back-to-top:hover .back-to-top-icon {
	transform: translateY(-2px);
}

.back-to-top-text {
	display: none;
}

/* Показывать текст на больших экранах */
@media (min-width: 768px) {
	.back-to-top {
		padding: 12px 24px;
	}
	.back-to-top-text {
		display: inline;
	}
}

/* Адаптивность для мобильных */
@media (max-width: 767px) {
	.back-to-top {
		bottom: 20px;
		right: 20px;
		width: 50px;
		height: 50px;
		padding: 0;
		justify-content: center;
		border-radius: 50%;
	}

	.back-to-top-text {
		display: none !important;
	}
}

/* Дополнительные стили для разных состояний */
.back-to-top:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(36, 77, 211, 0.3);
}

/* Альтернативный вариант с иконкой вместо стрелки */
.back-to-top.alternative .back-to-top-icon {
	font-size: 16px;
}

/* Анимация появления */
@keyframes backToTopFadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.back-to-top.visible {
	animation: backToTopFadeIn 0.4s ease-out;
}
.header__phone {
	flex-shrink: 0;
}
.menu-header-menu {
	max-width: 540px;
}
@media (max-width: 81.875em) {
	.header__rightside {
		max-width: 283px !important;
		justify-content: flex-end;
	}
	.header__container {
		gap: 15px;
	}
	.header__menu-list {
		gap: 0 10px;
		flex-wrap: wrap;
	}
}
@media (max-width: 991.98px) {
	.header__rightside {
		max-width: 167px !important;
	}
}
