/*
Theme Name: Infolenta
Theme URI: https://example.com
Author: Author Name
Author URI: https://example.com
Description: A minimal WordPress theme
Version: 1.0.0
Requires at least: 5.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: infolenta
Domain Path: /languages
*/

/* Rubik variable font — self-hosted */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('assets/fonts/rubik-normal-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('assets/fonts/rubik-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('assets/fonts/rubik-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('assets/fonts/rubik-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rubik';
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url('assets/fonts/rubik-italic-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Rubik';
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url('assets/fonts/rubik-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Rubik';
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url('assets/fonts/rubik-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Rubik';
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url('assets/fonts/rubik-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  box-sizing: border-box;
  vertical-align: baseline;
  background: transparent;
  text-decoration: none;
  color: inherit;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
  background-color: #fafafa;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Variables */
:root {
  --color-red: #B3001E;
  --color-white: #fff;
  --container: 1200px;
  --font-base: 'Rubik', sans-serif;
  --color-text: #171717;
}

*, *::before, *::after {
  font-family: var(--font-base);
  color: var(--color-text);
}

.container {
  max-width: 1280px;
  width: 100%;
  padding: 0 40px;
  margin: 0 auto;
}

.hidden {
  display: none;
}

.btn {
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
  line-height: 130%;
  text-transform: uppercase;
  color: var(--color-white);
  padding: 11.5px 32px;
  border-radius: 3px;
  box-shadow: 0px 4px 4px 0px #00000040;
  transition: 0.2s background ease;
  cursor: pointer;
  background: radial-gradient(79.55% 79.55% at 50% 20.45%, #EF4155 0%, #B3001E 61.54%, #7F242B 96.15%);
}

.btn:hover {
  background: radial-gradient(79.55% 79.55% at 50% 20.45%, #E33246 0%, #93011D 61.54%, #7D2930 96.15%);
}

.btn--white {
  background: radial-gradient(79.55% 79.55% at 50% 20.45%, #FFFFFF 0%, #F3F3F3 50%, #EBEBEB 100%);
  color: var(--color-red);
}

.btn--white:hover {
  background: radial-gradient(79.55% 79.55% at 50% 20.45%, #FFFFFF 0%, #E6E6E6 50%, #D9D9D9 100%);
}

.btn--icon {
  padding-right: calc(53px + 32px);
  position: relative;
}

.btn--icon span {
  display: flex;
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 53px;
  background-color: #2D2E2F;
  justify-content: center;
  align-items: center;
}

.icon-box {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: radial-gradient(79.55% 79.55% at 50% 20.45%, #EF4155 0%, #B3001E 61.54%, #7F242B 96.15%);
  box-shadow: 0px 4px 4px 0px #00000040;
}

.slider-arrow {
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-white);
  box-shadow: 0px 4px 4px 0px #00000040;
  border-radius: 50%;
  cursor: pointer;
}

.slider-arrow:hover {
  opacity: 0.8;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 100;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(12px);
  filter: drop-shadow(0px 4px 0px #fff);
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px);
}

.input-text {
  padding: 8px 12px;
  background-color: var(--color-white);
  font-weight: 400;
  font-size: 12px;
  line-height: 130%;
  letter-spacing: 0px;
  color: var(--color-text);
  border-radius: 3px;
}

.input-text::placeholder {
  color: #A4A4A4;
}

.input-text--textarea {
  min-height: 64px;
  resize: vertical;
}

.input-file input {
  opacity: 0;
  position: absolute;
  z-index: -3000;
  font-size: 0;
}

.input-file {
  cursor:pointer;
  display: flex;
  align-items: center;
  gap: 24px;
}

.input-file__text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  line-height: 130%;
  letter-spacing: 0px;
  color: var(--color-white);
}

.input-file__filename {
  font-weight: 400;
  font-size: 12px;
  line-height: 130%;
  letter-spacing: 0px;
  color: #E5E5E5;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 50%;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox input {
  opacity: 0;
  position: absolute;
  z-index: -3000;
  font-size: 0;
}

.checkbox span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background-color: var(--color-white);
  flex-shrink: 0;
}

.checkbox span svg {
  opacity: 0;
  transition: all 0.2s ease;
}

.checkbox input:checked + span svg {
  opacity: 1;
}

.checkbox__text {
  font-weight: 400;
  font-size: 12px;
  line-height: 130%;
  color: #E5E5E5;
}

.checkbox__text a {
  font-weight: 400;
  font-size: 12px;
  line-height: 130%;
  color: #E5E5E5;
  text-decoration: underline;
}

.checkbox__text a:hover {
  opacity: 0.8;
}

.modal {
  display: none;
  justify-content: center;
  align-items: center;
  background-color: #0000003a;
  position: fixed;
  width: 100%;
  height: 100dvh;
  z-index: 1000;
  left: 0;
  top: 0;
}

.modal.open {
  display: flex;
}

.modal__content {
  width: 100%;
  max-width: 392px;
  height: 100%;
  background-color: #fff;
  max-height: max-content;
  padding: 20px;
  box-shadow: 0px 5px 20px 0px #0000001A;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal__close {
  cursor: pointer;
}

.modal__title {
font-weight: 600;
font-size: 26px;
line-height: 120%;
text-transform: uppercase;
}

.modal__form {
  display: flex;
  flex-direction: column;
}

.modal__form .input-text {
  margin-bottom: 10px;
  border: 1px solid #EBEBEB
}

.modal__form .checkbox {
  padding-top: 6px;
  margin-bottom: 24px;
}

.modal__form .checkbox span {
  border: 1px solid #EBEBEB
}

.modal__form .checkbox p,
.modal__form .checkbox a {
  color: #696969;
}

/* Два чекбокса в ряд (опции заказа) */
.modal__checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
  margin-bottom: 10px;
}

.modal__checkboxes .checkbox {
  margin-bottom: 0;
  padding-top: 0;
}

.modal .input-file__text {
  color: var(--color-text);
}

.modal .input-file {
  margin: 16px 0;
}

.modal .input-file__filename {
  color: var(--color-text);
  max-width: 40%;
}

.modal__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23B3001E' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
  border: 1px solid #EBEBEB;
  margin-bottom: 10px;
}

#vacancy-name-input {
  color: #696969;
  background-color: #F7F7F7;
  cursor: default;
}

.consultation {
  background-color: #fff;
}

.consultation__mobile {
  display: none;
}

.consultation__content {
  width: 100%;
  max-width: 470px;
}

.consultation__desktop {
  flex-shrink: 0.5;
}

.consultation__title {
font-weight: 600;
font-size: 32px;
line-height: 120%;
letter-spacing: 0px;
vertical-align: middle;
text-transform: uppercase;
color: #4D5154;
margin-bottom: 16px;
}

.consultation__text {
font-weight: 400;
font-size: 16px;
line-height: 130%;
letter-spacing: 0px;
color: #232325;

}

.consultation__inner {
  padding: 64px 0;
  margin: 0 auto;
  max-width: 1000px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.consultation__right {
  display: flex;
  align-items: center;
}

.consultation__btn {
  width: 86px;
  height: 86px;
  flex-shrink: 0;
  cursor: pointer;
  transition: scale 0.3s ease;
}

.consultation__btn:hover {
  scale: 1.1;
}

@media (max-width: 1600px) {
	.scroll-top {
		right: 16px;
		bottom: 16px;
		width: 90px;
	  }

	  .scroll-top svg {
		width: 70px;
		height: auto;
	  }
}

@media (max-width: 1080px) {
  .container {
    max-width: 1240px;
    padding: 0 20px;
  }

  
}

/* ── Ошибки форм ────────────────────────────────────────────────────────────── */
.field-error {
  display: block;
  font-size: 11px;
  line-height: 130%;
  color: #B3001E;
  margin-top: -6px;
  margin-bottom: 8px;
}

.form-error {
  font-size: 12px;
  line-height: 130%;
  color: #B3001E;
  margin-bottom: 10px;
  text-align: center;
}

.input-error {
  border: 1px solid #B3001E !important;
  background-color: #fff5f5 !important;
}

/* Дизейбл кнопки при отправке */
button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Цвет field-error внутри модалок (светлый фон) */
.modal__form .field-error,
.modal__form .form-error {
  color: #B3001E;
}

@media (max-width: 768px) {
  .container {
    max-width: 1220px;
    padding: 0 10px;
  }

  .slider-arrow {
    width: 32px;
    height: 32px;
  }

  .slider-arrow svg {
    width: 6px;
    height: 12px;
  }

  .consultation__inner {
    flex-direction: column;
    gap: 8px;
    padding: 56px 0;
  }

  .consultation__desktop {
    display: none;
  }

  .consultation__mobile {
    display: block;
  }

  .consultation__right {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
  }

  .consultation__btn {
    margin-top: 16px;
  }
}

@media (max-width: 560px) {
  .scroll-top {
    display: none;
  }
}
