% --- ПРЕАМБУЛА: LG INTERNAL REPORT (SIMPLIFIED) ---

% --- КОДИРОВКА И ЯЗЫК ---
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[russian]{babel}
\usepackage{csquotes} % Added for babel compatibility
\usepackage[most]{tcolorbox}

% --- ГЕОМЕТРИЯ СТРАНИЦЫ ---
\usepackage[left=3cm, right=2cm, top=2.5cm, bottom=2.5cm]{geometry}

% --- ШРИФТЫ И ИНТЕРВАЛЫ ---
\usepackage{setspace}
\onehalfspacing
\usepackage{indentfirst}
\usepackage{titlesec}

% --- ЦВЕТА LG ---
\usepackage{xcolor}
\definecolor{LGBlue}{RGB}{0, 83, 156}
\definecolor{LGRed}{RGB}{237, 28, 36}

% --- ДЛЯ ИСПОЛЬЗОВАНИЯ @ В КОМАНДАХ ---
\makeatletter

% --- КОМАНДЫ ДЛЯ ОТЧЕТА ---
\newcommand{\projectcode}[1]{\def\@projectcode{#1}}
\newcommand{\department}[1]{\def\@department{#1}}
\newcommand{\reportdate}[1]{\def\@reportdate{#1}}
\newcommand{\approver}[1]{\def\@approver{#1}}
\newcommand{\reporttype}[1]{\def\@reporttype{#1}}

\department{Russia R\&D Lab, Web Team}
\reportdate{\today}
\approver{Dmitry Ketov, Part Leader}
\reporttype{Internal Report}

% --- ЗАГОЛОВКИ СТРАНИЦ ---
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{\small LG Internal}
\fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}

% --- ФОРМАТИРОВАНИЕ РАЗДЕЛОВ ---
\titleformat{\section}
{\normalfont\Large\bfseries}
{\thesection.}{0.5em}{}
\titleformat{\subsection}
{\normalfont\large\bfseries}
{\thesubsection.}{0.5em}{}

% --- МАТЕМАТИКА ---
\usepackage{amsmath, amssymb}

% --- ГРАФИКА ---
\usepackage{graphicx}
\graphicspath{{images/}}
\usepackage{caption}
\captionsetup{labelsep=period}

% --- БИБЛИОГРАФИЯ ---
\usepackage[
backend=biber,
style=gost-numeric,
sorting=none
]{biblatex}
\addbibresource{references.bib}

% --- КОД ---
\usepackage{listings}
\lstdefinestyle{lgcode}{
	language=Python,
	basicstyle=\ttfamily\small,
	keywordstyle=\bfseries,
	commentstyle=\itshape\color{gray},
	numbers=left,
	frame=single,
	breaklines=true,
	tabsize=2
}

% --- ССЫЛКИ ---
\usepackage{hyperref}
\hypersetup{
	colorlinks=true,
	linkcolor=LGBlue,
	citecolor=LGBlue,
	urlcolor=LGBlue
}

% --- ТИТУЛЬНАЯ СТРАНИЦА (ПРОСТАЯ) ---
\renewcommand{\maketitle}{
	\begin{titlepage}
		\thispagestyle{empty}
		
		\vspace*{2cm}
		
		\begin{center}
			% Логотип и организация
			{\LARGE\bfseries LG Electronics} \\
			\vspace{0.5cm}
			{\large Russia R\&D Lab} \\
			\vspace{1cm}
			
			% Линия
			\textcolor{LGBlue}{\rule{0.6\textwidth}{1pt}} \\
			\vspace{0.5cm}
			
			% Тип отчета
			{\Large\bfseries \@reporttype} \\
			\vspace{1cm}
			
			% Заголовок
			{\Huge\bfseries \@title} \\
			\vspace{1.5cm}
			
			% Информация
			\begin{tabular}{p{0.45\textwidth}p{0.45\textwidth}}
				\textbf{Подготовил:} & \textbf{Утвердил:} \\
				\@author & \@approver \\
				& \\
				\textbf{Отдел:} & \textbf{Дата:} \\
				\@department & \@reportdate \\
				& \\
				 & \textbf{Версия:} \\
				 & 1.0
			\end{tabular}
			
			\vfill
			
			\vspace{0.3cm}
			\footnotesize
			\today
		\end{center}
	\end{titlepage}
}

\makeatother

% --- ПРОСТЫЕ КОМАНДЫ ---
\newcommand{\lgconfidential}{\textcolor{LGRed}{[КОНФИДЕНЦИАЛЬНО]}}
\newcommand{\lginternal}{\textcolor{LGBlue}{[ВНУТРЕННИЙ]}}
\newcommand{\bmi}{BMI}

\newtcolorbox{myquote}{
	breakable, % Allows the box to break across pages
	enhanced,  % Use enhanced graphical features
	blank,     % Start with no background or default frame
	left skip=16pt, % Adjust the left margin for the text
	borderline west={2pt}{0pt}{gray} % Add a vertical line (width, offset, color)
}

% --- МЕТАДАННЫЕ ПО УМОЛЧАНИЮ ---
\title{Отчет по исследованию}
\author{Исследовательская группа}
\date{\today}