/* ========== (CSS RESET) ========== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

* {
	margin: 0;
	padding: 0;
}

html {
	-webkit-text-size-adjust: 100%;
 /* Предотвращает изменение размера шрифта на iPhone */;
}

body {
	line-height: 1.5;
 /* Базовый, удобный интерлиньяж */
	-webkit-font-smoothing: antialiased;
 /* Сглаживание шрифтов */;
}

h1, h2, h3, h4, h5, h6, p {
	margin: 0;
 /* Убираем отступы у заголовков и параграфов */;
}

ul, ol {
	list-style: none;
 /* Убираем маркеры у списков */;
}

a {
	text-decoration: none;
 /* Убираем подчеркивание у ссылок */
	color: inherit;
 /* Ссылки наследуют цвет текста */;
}

img, picture, video, canvas, svg {
	display: block;
	height: auto;
	width: auto;
	max-width: 100%;
}

button, input, select, textarea {
	font: inherit;
 /* Формы наследуют шрифт от body */;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
input[type="time"],
select,
textarea {
  /* Сброс базовых стилей */
  margin: 0;
  padding: 0;
  
  /* Типографика и цвет текста */
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: 1.15;
  color: inherit;           /* ← наследует цвет от родителя */
  
  /* Границы и фон */
  border: none;
  border-radius: 0;
  background: none;
  background-color: transparent;
  
  /* Размеры */
  width: auto;
  max-width: 100%;
  
  /* Убираем стрелки у number */
  -moz-appearance: textfield;
  appearance: none;
  
  /* Убираем крестик у search в WebKit */
  &::-webkit-search-decoration,
  &::-webkit-search-cancel-button,
  &::-webkit-search-results-button,
  &::-webkit-search-results-decoration {
    -webkit-appearance: none;
  }
  
  /* Убираем стрелки у number в WebKit */
  &::-webkit-inner-spin-button,
  &::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
  
  /* Календарь и время */
  &::-webkit-calendar-picker-indicator {
    background: transparent;
    color: transparent;
    cursor: pointer;
  }
  
  /* placeholder стиль */
  &::placeholder {
    color: inherit;
    opacity: 0.5;
  }
}

/* Для textarea отдельно */
textarea {
  resize: vertical;
  overflow: auto;
}

/* Для select */
select {
  cursor: pointer;
  
  /* Убираем стрелку в IE */
  &::-ms-expand {
    display: none;
  }
}
/* ========== (CSS RESET) ========== */


:root {
    /* Типографика */
	--font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-family-heading: var(--font-family-base);
	--font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    /* Размеры шрифтов */
	--font-size-xs: clamp(0.625rem, 1.2vw, 0.75rem);
     /* 10-12px */
	--font-size-sm: clamp(0.75rem, 1.4vw, 0.875rem);
     /* 12-14px */
	--font-size-base: clamp(1.0625rem, 1.6vw, 1.1875rem);
      /* 17-19px */
	--font-size-md: clamp(0.9375rem, 1.8vw, 1.125rem);
   /* 15-18px */
	--font-size-lg: clamp(1rem, 2vw, 1.25rem);
           /* 16-20px */
	--font-size-xl: clamp(1.125rem, 2.4vw, 1.5rem);
      /* 18-24px */
	--font-size-2xl: clamp(1.375rem, 3vw, 1.875rem);
     /* 22-30px */
	--font-size-3xl: clamp(1.625rem, 3.6vw, 2.25rem);
    /* 26-36px */
	--font-size-4xl: clamp(2rem, 4.8vw, 3rem);
           /* 32-48px */
	--font-size-5xl: clamp(2.125rem, 5.2vw, 3.25rem);
    /* 34-52px */
	--font-size-6xl: clamp(1.75rem, 5vw, 4.0625rem);
 	/* 72px */
    /* Толщина шрифта */
	--font-weight-light: 300;
	--font-weight-normal: 400;
	--font-weight-medium: 500;
	--font-weight-semibold: 600;
	--font-weight-bold: 700;
    /* Межстрочный интервал */
	--line-height-tight: 1.2;
	--line-height-base: 1.5;
	--line-height-loose: 1.8;
	--font-family-base: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ==========================================================================
   Базовые стили
   ========================================================================== */
html {
	box-sizing: border-box;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	font-size: 16px;
}

@font-face {
	font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Medium.eot'); /* IE9 Compat Modes */
    src: url('../fonts/Gilroy-Medium.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/Gilroy-Medium.woff2') format('woff2'), /* Super Modern Browsers */
         url('../fonts/Gilroy-Medium.woff') format('woff'), /* Modern Browsers */
         url('../fonts/Gilroy-Medium.ttf') format('truetype'); /* Safari, Android, iOS */
    font-weight: 500; /* Medium = 500 */
    font-style: normal;
    font-display: swap; /* Оптимизация загрузки */;
}

/* Gilroy SemiBold */
@font-face {
	font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Semibold.eot');
    src: url('../fonts/Gilroy-Semibold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Gilroy-Semibold.woff2') format('woff2'),
         url('../fonts/Gilroy-Semibold.woff') format('woff'),
         url('../fonts/Gilroy-Semibold.ttf') format('truetype');
    font-weight: 600; /* SemiBold = 600 */
    font-style: normal;
    font-display: swap;
}
/* Gilroy Light */
@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/Gilroy-Light.eot');
    src: url('../fonts/Gilroy-Light.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Gilroy-Light.woff2') format('woff2'),
        url('../fonts/Gilroy-Light.woff') format('woff'),
        url('../fonts/Gilroy-Light.ttf') format('truetype'),
        url('../fonts/Gilroy-Light.svg#Gilroy-Light') format('svg');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}



/* ==========================================================================
   Типографика
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-family-heading);
	font-weight: var(--font-weight-light);
	line-height: var(--line-height-tight);
	color: #ffffff;
	margin-top: 0;
	margin-bottom: 1rem;
}

h1 {
	font-size: var(--font-size-4xl);
}

h2 {
	font-size: var(--font-size-3xl);
}

h3 {
	font-size: var(--font-size-2xl);
}

h4 {
	font-size: var(--font-size-xl);
}

h5 {
	font-size: var(--font-size-lg);
}

h6 {
	font-size: var(--font-size-md);
}

p {
	margin-top: 0;
	margin-bottom: 1rem;
}

small {
	font-size: var(--font-size-sm);
}

strong, b {
	font-weight: var(--font-weight-bold);
}

em, i {
	font-style: italic;
}

/* ==========================================================================
   Ссылки
   ========================================================================== */
a {
	color: #00052b;
	text-decoration: none;
	background-color: transparent;
	transition: all 0.2s ease-in-out;
}

a:hover {
	text-decoration: none;
}

a:not([href]) {
	color: inherit;
	text-decoration: none;
}

/* ==========================================================================
   Списки
   ========================================================================== */
ul, ol {
	margin-top: 0;
	margin-bottom: 1rem;
	padding-left: 2rem;
}

ul ul, ol ul, ul ol, ol ol {
	margin-bottom: 0;
}

li {
	margin-bottom: 0.5rem;
}

ul:not([class]) {
	list-style-type: disc;
}

ol:not([class]) {
	list-style-type: decimal;
}

dl {
	margin-top: 0;
	margin-bottom: 1rem;
}

dt {
	font-weight: var(--font-weight-bold);
}

dd {
	margin-left: 2rem;
	margin-bottom: 0.5rem;
}



/* ==========================================================================
   Таблицы
   ========================================================================== */
table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1rem;
	caption-side: bottom;
}

caption {
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
	color: #6c757d;
	text-align: left;
	font-size: var(--font-size-sm);
}

th {
	text-align: inherit;
	text-align: -webkit-match-parent;
	font-weight: var(--font-weight-bold);
	padding: 0.75rem 1rem;
	border-bottom: 2px solid #dee2e6;
}

td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid #e9ecef;
}

thead {
	background-color: #f8f9fa;
}

tfoot {
	background-color: #f8f9fa;
	font-weight: var(--font-weight-bold);
}

/* ==========================================================================
   Формы
   ========================================================================== */
form {
	margin-bottom: 1rem;
}

fieldset {
	min-width: 0;
	padding: 1rem;
	margin: 0;
	border: 1px solid #dee2e6;
	border-radius: 0.375rem;
}

legend {
	display: block;
	width: auto;
	padding: 0 0.5rem;
	margin-left: -0.5rem;
	font-size: var(--font-size-md);
	font-weight: var(--font-weight-medium);
	color: inherit;
	border: none;
}

label {
	display: inline-block;
	margin-bottom: 0.5rem;
	font-weight: var(--font-weight-medium);
}

input,
button,
select,
optgroup,
textarea {
	margin: 0;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
input[type="time"],
select,
textarea {
	display: block;
	width: 100%;
	padding: 0.75rem 1rem;
	font-size: var(--font-size-lg);
	font-weight: var(--font-weight-light);
	line-height: var(--line-height-base);
	color: #fff;
	background-color: #00052b00;
	background-clip: padding-box;
	border: 1px solid #ffffff;
	border-radius: 1rem;
	transition: all 0.2s ease-in-out;
	margin-top: 10px;
	margin-bottom: 10px;
	text-transform: lowercase;
	
	
}
input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder,
input[type="number"]::placeholder,
input[type="tel"]::placeholder,
input[type="url"]::placeholder,
input[type="search"]::placeholder,
input[type="date"]::placeholder,
input[type="datetime-local"]::placeholder,
input[type="month"]::placeholder,
input[type="week"]::placeholder,
input[type="time"]::placeholder,
select::placeholder,
textarea::placeholder {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-base);
  color: #fff;
}

/* Для WebKit (Chrome, Safari, Edge) */
input[type="text"]::-webkit-input-placeholder,
input[type="password"]::-webkit-input-placeholder,
input[type="email"]::-webkit-input-placeholder,
input[type="number"]::-webkit-input-placeholder,
input[type="tel"]::-webkit-input-placeholder,
input[type="url"]::-webkit-input-placeholder,
input[type="search"]::-webkit-input-placeholder,
input[type="date"]::-webkit-input-placeholder,
input[type="datetime-local"]::-webkit-input-placeholder,
input[type="month"]::-webkit-input-placeholder,
input[type="week"]::-webkit-input-placeholder,
input[type="time"]::-webkit-input-placeholder,
select::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  font-size: var(--font-size-xl);
 font-weight: var(--font-weight-light);
  line-height: var(--line-height-base);
  color: #fff;
}

/* Для Firefox */
input[type="text"]::-moz-placeholder,
input[type="password"]::-moz-placeholder,
input[type="email"]::-moz-placeholder,
input[type="number"]::-moz-placeholder,
input[type="tel"]::-moz-placeholder,
input[type="url"]::-moz-placeholder,
input[type="search"]::-moz-placeholder,
input[type="date"]::-moz-placeholder,
input[type="datetime-local"]::-moz-placeholder,
input[type="month"]::-moz-placeholder,
input[type="week"]::-moz-placeholder,
input[type="time"]::-moz-placeholder,
select::-moz-placeholder,
textarea::-moz-placeholder {
  font-size: var(--font-size-xl);
font-weight: var(--font-weight-light);
  line-height: var(--line-height-base);
  color: #fff;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
select:focus,
textarea:focus {
	color: #00052B;
	background-color: #ffffff;
	outline: 0;
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

input[type="checkbox"],
input[type="radio"] {
	width: auto;
	margin-right: 0.5rem;
	vertical-align: middle;
}

input[type="checkbox"] + label,
input[type="radio"] + label {
	display: inline-block;
	margin-bottom: 0;
	font-weight: var(--font-weight-normal);
	vertical-align: middle;
	font-size: var(--font-size-sm);
}

textarea {
	min-height: 100px;
	resize: vertical;
}

select[multiple] {
	background-image: none;
	padding-right: 1rem;
}

input[type="file"] {
	display: block;
	width: 100%;
	padding: 0.75rem 0;
}

input::placeholder {
	color: #ffffff;
	opacity: 1;
	transition: color 0.3s ease;
}

/* При фокусе - меняем цвет */
input:focus::placeholder {
	color: #00052b;
}

/* Поддержка старых браузеров */
input::-webkit-input-placeholder {
	color: #ffffff;
}

input::-moz-placeholder {
	color: #ffffff;
}

input:-ms-input-placeholder {
	color: #ffffff;
}

input:focus::-webkit-input-placeholder {
	color: #00052b;
}

input:focus::-moz-placeholder {
	color: #00052b;
}

input:focus:-ms-input-placeholder {
	color: #00052b;
}

select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='17' viewBox='0 0 32 17' fill='none'%3E%3Cpath d='M1 1L16 16L31 1' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 20px center;
	cursor: pointer;
}

select:focus {
	border-color: #00052b;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='17' viewBox='0 0 32 17' fill='none'%3E%3Cpath d='M1 1L16 16L31 1' stroke='%2300052b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

select option {
	background-color: #00052b;
}
/* ==========================================================================
   Встроенные элементы
   ========================================================================== */
hr {
	margin: 2rem 0;
	border: 0;
	border-top: 1px solid #dee2e6;
}

address {
	font-style: normal;
	line-height: inherit;
	margin-bottom: 1rem;
}

blockquote {
	margin: 0 0 1rem;
	padding: 1rem 1.5rem;
	border-left: 3px solid #dee2e6;
	background-color: #f8f9fa;
	font-style: italic;
}

pre {
	display: block;
	margin-top: 0;
	margin-bottom: 1rem;
	padding: 1rem;
	overflow: auto;
	font-size: var(--font-size-sm);
	font-family: var(--font-family-monospace);
	line-height: var(--line-height-base);
	color: #212529;
	background-color: #f8f9fa;
	border-radius: 0.375rem;
}

code, kbd, samp {
	font-family: var(--font-family-monospace);
	font-size: var(--font-size-sm);
}

code {
	padding: 0.25rem 0.5rem;
	background-color: #f8f9fa;
	border-radius: 0.25rem;
}

kbd {
	padding: 0.25rem 0.5rem;
	color: #ffffff;
	background-color: #212529;
	border-radius: 0.25rem;
}

/* Улучшение доступности для фокуса */
:focus-visible {
	outline: 2px solid #007bff;
	outline-offset: 2px;
}

/* Скрытый контент для скринридеров */
.visually-hidden:not(:focus):not(:active) {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}